-
How did you sort out the CRC calculation??
Thats the only part that can be a bit tricky for a simple modbus implementation, I can build the packet by hand and parse the response my self.
I often get devices scattered all over the place that has a RS485 port with modbus, often its just a few bytes of data that I want from it. But running a hardwire etc etc to this makes it a lot of work. A small BLE device that polls data and sends it as BLE manufacture data would be perfect to just get the status and monitor the device values. WiFi is often hard to get working, and BLE actually has longer range in real life :-) Being able to reprogram the device wireless makes it just perfect.
Hmm, I'm not sure about modbusTCP-EsprĀuino at all - but that sounds like it's over TCPIP?
I've only done one thing with Modbus in the past, but for that I just used Serial1 directly - I didn't think there was that much else to it once the Serial port was set up correctly.