Example code not working

Why doesn’t the included example for the electron function work? In the “Control LEDs over the 'net”…it returns an error that there is no function.
{“ok”:false,“error”:“Function led not found”}

Is what you get. There are not any typos. I pasted the code as it is written. The console shows no functions found. Why does this not work???

There’s either a code error, the device hasn’t flashed correctly, or the connection is being weird.
To rule out code issues, could you give us the share link from the Web IDE?
To rule out flashing issues: how did you flash the device and what versions are you flashing? What is the LED doing? Can you insert a Particle publish in setup to check if the code is being flashed correctly?

2 Likes