Go Down

Topic: problem with sensornet of maniacbug, anyone can help me !!!! (Read 824 times) previous topic - next topic

phamhoangns

I download sourcecode from http://maniacbug.github.io/RF24Network/index.html . In examples sensornet, I can't complie it.
This error :
sensornet:99: error: 'Timer' does not name a type
sensornet:102: error: 'Button' does not name a type
sensornet:105: error: 'Button' does not name a type
sensornet:147: error: expected class-name before '{' token
sensornet.ino: In member function 'virtual void StartupLEDs::onFired()':
sensornet:166: error: 'disable' was not declared in this scope
sensornet.ino: In constructor 'StartupLEDs::StartupLEDs(const LED**, int)':
sensornet:170: error: class 'StartupLEDs' does not have any field named 'Timer'
sensornet.ino: At global scope:
sensornet:179: error: expected class-name before '{' token
sensornet.ino: In constructor 'CalibrationLEDs::CalibrationLEDs(const LED**, int, long unsigned int)':
sensornet:196: error: class 'CalibrationLEDs' does not have any field named 'Timer'
sensornet:198: error: 'Timer' has not been declared
sensornet.ino: In member function 'void CalibrationLEDs::begin()':
sensornet:202: error: 'Updatable' has not been declared
sensornet.ino: In member function 'void CalibrationLEDs::reset()':
sensornet:208: error: 'Timer' has not been declared
sensornet.ino: In member function 'void CalibrationLEDs::disable()':
sensornet:214: error: 'Timer' has not been declared
sensornet.ino: In function 'void setup()':
sensornet:325: error: 'ButtonA' was not declared in this scope
sensornet:326: error: 'ButtonLong' was not declared in this scope
sensornet:336: error: 'send_timer' was not declared in this scope
sensornet:337: error: 'class StartupLEDs' has no member named 'begin'
sensornet.ino: In function 'void loop()':
sensornet:361: error: 'theUpdater' was not declared in this scope
sensornet:402: error: 'send_timer' was not declared in this scope
sensornet:478: error: 'send_timer' was not declared in this scope
sensornet:481: error: 'send_timer' was not declared in this scope
sensornet:491: error: 'send_timer' was not declared in this scope
sensornet:491: error: no match for 'operator!' in '!startup_leds'
sensornet.ino:491: note: candidates are: operator!(bool) <built-in>
sensornet:564: error: 'ButtonA' was not declared in this scope
sensornet:569: error: could not convert 'startup_leds' to 'bool'
sensornet:588: error: 'ButtonLong' was not declared in this scope


Anyone know clear about this, can help me fix that, I'm really grateful


doggenj

The first error indicates that the compiler can't find the library in your path.
Did you place the library in the 'libraries' folder?



kovir

I have different problem - I cannot setup my arduino to act as a master... when I send 00N via serial (to setup an address) I get "ERROR: This sketch cannot run on node 00?  every time..

Anyone can configure base station wit 00 address?

phamhoangns

thank, I download tictoc lib and it run. Thank for help me ^^

Go Up