Error Compilation Photon 2

Good afternoon everyone. I'm having problems compiling my photon 2 with the thingspeak library. In fact I migrated from photon 1 to 2 and now I get the following error when I try to compile including the thingspeak library: #error Only Core/Photon/Electron/P1/Argon/Boron are supported. Thank you in advance for everyone's understanding.

Hi, search in the lib for something like this:

    #if (PLATFORM_ID == PLATFORM_ARGON) 

or the error you are seeing.

Then add OR ADAPT the code to support photon 2 to it, like this:

    #if (PLATFORM_ID == PLATFORM_P2)
1 Like