CLI - compile blinky code bug

I am following the instructions in the “Update your device remotely” section using the blinky code. When I try to compile the code I get the following error:

...> particle compile photon blinky.ino
Compiling code for photon

attempting to compile firmware
Compile failed. Exiting.
blinky.cpp:1:2: error: invalid preprocessing directive #Copy
 #Copy me to blinky.ino
make[1]: *** [../build/target/user/platform-6blinky.o] Error 1
make: *** [user] Error 2

If you read the error you can clearly see that you should not have

#Copy me to blinky.ino

in your code.

This was a documentation mistake on the part of Particle that I fixed thanks to you. Thanks for reporting!

1 Like

Thank you for your prompt and precise reply. It now works.