theHuanter 02/14/2024 08:40 AMI try to run the espnow implementation with toit which works fine as broadcasting but when I try to set the address where the data should be send to I revceive an unknown error:
jag decode WyNVBVVYU1UQdjIuMC4wLWFscGhhLjEzNFNVAFskVSNVEBeZ9UO/CVDXk6Icr6uwT6ZbI1UEVUVTVQlFWENFUFRJT05TVRtVTktOT1dOIEVSUk9SIDB4MzA2OSgxMjM5MylbI1UCVVNbI1URWyNsAAAAA1VGVQBJA3lbI2wAAAADVUZVAUl6tFsjbAAAAANVRlUCSVTPWyNsAAAAA1VGVQNJTvNbI2wAAAADVUZVBElPUVsjbAAAAANVRlUFSVTkWyNsAAAAA1VGVQZJeu9bI2wAAAADVUZVB0kDIFsjbAAAAANVRlUISQJZWyNsAAAAA1VGVQlJCihbI2wAAAADVUZVCkkLgFsjbAAAAANVRlULSQuXWyNsAAAAA1VGVQxJOyVbI2wAAAADVUZVDUk7PVsjbAAAAANVRlUOSTphWyNsAAAAA1VGVQ9JOulbI2wAAAADVUZVEEkKPA==
EXCEPTION error.
UNKNOWN ERROR 0x3069(12393)
0: espnow-send_ <sdk>\esp32\espnow.toit:191:3
1: Service.send.<block> <sdk>\esp32\espnow.toit:145:7
2: Mutex.do.<monitor-block> <sdk>\monitor.toit:28:27
3: __Monitor__.locked_.<block> <sdk>\core\monitor_impl_.toit:123:12
4: __Monitor__.locked_ <sdk>\core\monitor_impl_.toit:95:3
5: Mutex.do <sdk>\monitor.toit:28:3
6: Service.send <sdk>\esp32\espnow.toit:143:17
7: send-task src\toit\espnow\bouy-espnow.toit:33:13
8: main.<lambda> src\toit\espnow\bouy-espnow.toit:19:10
all I changed was setting the address to the service send to be the address of the receiver side.
service.send buffer
--address=Address #[0x8C, 0x4B, 0x14, 0x16, 0x64, 0x60]
I also changed the address on the receiver side to be the one from the sender:
service := espnow.Service.station --key=null
service.add-peer (Address #[0x8C, 0x4B, 0x14, 0x16, 0x6A, 0x6C]) --channel=1