OpenSprinkler › Forums › OpenSprinkler Unified Firmware › vscode remote debugging configuration › Reply To: vscode remote debugging configuration
ronnie
Update 2:
Now using the ARDUINO instructions for vscode. Installed the platformio extension and removed from the platformio.ini everything except the linux directives. This fixed many errors. However, using the platformio build I got a can’t find “WProgram.h” error among others. This error appears to be caused by emailsender.h
40 #if ARDUINO >= 100
41 #include “Arduino.h”
42 #else
43 #include “WProgram.h”
44 #endif
After commenting out this code the error is resolved. The “else” is executed even if not ARDUINO… Should there be another “if” in this ?
The main remaining problem is openthingsframework is missing from the linux directives in the platformio.ini. Since openthingsframework is for ARDUINO I don’t think it is necessary for linux. But it has an include in opensprinkler.h.
Anybody have any ideas?