This is the maximum supported TCP frame length. Request handler uses readinto() functions to read data in-place into a single static buffer of 128 bytes for TCP and RTU frames. The code is purposely not using uasyncio library to avoid frequent memory allocation and possible fragmentation issues. By default D1 ( GPIO5, you can change this in main.py) is used for driver enable control and needs to be connected to converter's DE (active high) and RE (active low) pins. Connect ESP TX pin to DI pin and ESP RX pin to RO pin. # webrepl_cli.py modbus.py 192.168.4.1:/ # webrepl_cli.py main.py 192.168.4.1:/ Hardware connectionĪ TTL-RS485 converter is necessary for RS485 connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |