BedOccupancySensors - 'MySensor' does not name a type
-
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 type
For as far as I can tell the libs are installed correctly
-
@Deluka looks like the sketch is for MySensors 1.x and my guess is that you have installed MySensors 2.x.
1 out of 2
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 10 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 19 days ago • bocalexandru 17 days ago -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47