Open jeffaries opened 5 years ago
Ciao @jeffaries try adding the missing braces in the error_handler
of the first sketch you have pasted! Although I suspect memory issues may arise in ATtiny84 using PJONSlave, why dont you use the bare PJON class? Do you effectively need dynamic addressing in place? Consider if you could get away with static addressing because that would leave more space for the application.
Ciao @gioblu , First, thank you for your super fast answer... and if I took so much to also answer, it is because I wanted to test several things prior to revert to you.
In my project, I have a master that is sending simple commands to several devices (up to 200) via SBB. However, at installation time, the master doesn't know the list of devices. It is similar to an smarthouse where you would buy a central controller and spare smart lights. I wanted to rely on the Physical ID that you have introduced in the v3 (https://github.com/gioblu/PJON/blob/master/specification/PJON-dynamic-addressing-specification-v3.0.md) since it would have been a decent solution to "register" the devices (ATTiny84) on the Master (ESP8285) through a web interface.
If it was possible to use the 5 bytes physical id with bare library, I could probably live with it ;)
@jeffaries thank you for your answer, what is the result of the networkAnalysis (having ATtiny on receiver side) example? Does that work? And the SpeeTest example (having the ATtiny on the transmitter side)? Those results would help to exclude an issue on a lower level.
If the results are fine the problem may be in the PJONMaster or PJONSlave procedure, although I suspect the issue is the available ram.
Hi, I continue my investigations with PJON... after ESP8266 and ESP8285 only tests, I have started tests with an ESP8266 as Master and an ATTiny84 as Slave (I have just received these low-cost microcontrollers and my experience with these is not as extensive as with the ESPxxxx) Note: my tests of communication peer to peer were working (sending a message from ESP8266 to ATTiny with known device_id)
Here is my latest version on the ATTiny84:
And on the ESP8266:
The led connected to the pin 5 should at least blink to notify errors... but nothing is blinking (except during the initial test in Setup())
in the serial console, I have not more than
Where am I wrong?
Thank you very much for your help