I love the look of this setup. I am making my own slim nodes running at 8MHz with a basic 328P chip.
I am starting with a basic Thermistor which is fine but when I try to compile the code I get the following error.
exit status 1
default argument given for parameter 3 of 'void PowerManager::setPowerPins(int, int, long int)' [-fpermissive]
My code is as follows:
// load user settings
#include "config.h"
// load MySensors library
#include <MySensors.h>
// load NodeManager library
#include "NodeManager.h"
// create a NodeManager instance
NodeManager nodeManager;
// before
void before() {
// setup the serial port baud rate
Serial.begin(9600);
// instruct the board to sleep for 10 minutes for each cycle
// nodeManager.setSleep(SLEEP,10,MINUTES);
// register the sensors
nodeManager.registerSensor(SENSOR_THERMISTOR,A1);
// nodeManager.registerSensor(SENSOR_LDR,A2);
/*
* Register below your sensors
*/
/*
* Register above your sensors
*/
nodeManager.before();
}
// presentation
void presentation() {
// Send the sketch version information to the gateway and Controller
sendSketchInfo("Battery Temp Sensor","1.0");
// call NodeManager presentation routine
nodeManager.presentation();
}
// setup
void setup() {
// call NodeManager setup routine
nodeManager.setup();
}
// loop
void loop() {
// call NodeManager loop routine
nodeManager.loop();
}
// receive
void receive(const MyMessage &message) {
// call NodeManager receive routine
nodeManager.receive(message);
}
Any help with sorting this out will be great.
Cheers,
Ben