Hi there. First post.
I’ve been a programmer for about 20 years now (C, VB, C++, .NET, etc), but am brand new to web programming. I would like to create a website I can use to read and update configuration settings for my Particle project (the settings will be stored in the EEPROM). I read the Particle Reference Doc about the Particle API JS, and I found a good code sample here.
But the Particle doc uses particle.min.js, while the sample code I linked to uses spark.min.js (which I assume is older). When I changed the sample code to match the Particle doc I got an error: “ReferenceError: Particle is not defined”.
Here are my questions:
Are there any good code examples using particle.min.js?
Should I even be using particle.min.js? Is there a better way for me to build a website? (All I want to do is read values from the Photon and display them in text boxes, allow updates, and send those updated values back to the Photon)
Like I said, I’m totally new at this. Do you have any recommendations as to where to start learning how to build such a website? (document links, books, code examples, etc)
Hey. How do you post code? I can’t figure out the Preformatted Text button?