Open dontsovcmc opened 5 years ago
Hi @dontsovcmc, there is no "receive packet" function - there is receive_handler instead which is called each time the pjon_cli receives a valid packet. The handler method is registered with pjon_cli.set_receive(receive_handler). It is the handler method where you put your custom code to deal with the received packet - in the example device ID and payload are printed to screen.
FakeSerial and FakeRedis are classes used in unit tests to replace external dependencies (e.g. serial port or Redis server).
I can't understand is it possible to talk with Arduino board through serial port?
I want to send command to Arduino and hadn't seen "received packet" in Python
Python code.
Arduino code: