BedOccupancySensors - 'MySensor' does not name a type
Troubleshooting
2
Posts
2
Posters
874
Views
2
Watching
-
Trying to upload this sketch put i'm getting the following error
BedOccupancySensor:60: error: 'MySensor' does not name a type MySensor gw; ^ C:\Users\Repair Tech\Downloads\BedOccupancySensor\BedOccupancySensor.ino: In function 'void setup()': BedOccupancySensor:100: error: 'gw' was not declared in this scope gw.begin(NULL, NODE_ID); ^ C:\Users\Repair Tech\Downloads\BedOccupancySensor\BedOccupancySensor.ino: In function 'void loop()': BedOccupancySensor:204: error: 'gw' was not declared in this scope gw.send(msgRightOcc.set(occStateRight[4])); // Send tripped value to gw ^ BedOccupancySensor:260: error: 'gw' was not declared in this scope gw.send(msgLeftOcc.set(occStateLeft[4])); // Send tripped value to gw ^ exit status 1 'MySensor' does not name a typeFor as far as I can tell the libs are installed correctly
-
Trying to upload this sketch put i'm getting the following error
BedOccupancySensor:60: error: 'MySensor' does not name a type MySensor gw; ^ C:\Users\Repair Tech\Downloads\BedOccupancySensor\BedOccupancySensor.ino: In function 'void setup()': BedOccupancySensor:100: error: 'gw' was not declared in this scope gw.begin(NULL, NODE_ID); ^ C:\Users\Repair Tech\Downloads\BedOccupancySensor\BedOccupancySensor.ino: In function 'void loop()': BedOccupancySensor:204: error: 'gw' was not declared in this scope gw.send(msgRightOcc.set(occStateRight[4])); // Send tripped value to gw ^ BedOccupancySensor:260: error: 'gw' was not declared in this scope gw.send(msgLeftOcc.set(occStateLeft[4])); // Send tripped value to gw ^ exit status 1 'MySensor' does not name a typeFor as far as I can tell the libs are installed correctly