Azure / iot-edge-modbus

Modbus protocol module for use with the Azure IoT Edge
Other
90 stars 71 forks source link

Invoke method not working without internet #76

Closed haohaowasky closed 3 years ago

haohaowasky commented 5 years ago

I have an edge device running the latest version of Azure IoT SDK edge.

I also have an android device running latest version of Azure IoT ask device.

The upstream MQTT message works very well, but the downstream invoke method doesn't work without internet. (Works with edge internet connection).

If that's the case, how can I do communication from edge to device offline?

yphuangms commented 4 years ago

Hi, could you give more details about your scenario? What's the role of the Android device? Does your "downstream invoke method" refer to "direct method"? Currently there's no direct method implemented in Modbus module, so I assume that you customized the module to support your scenario. For existing Modbus module implementation, you can use the "Command Message" to send a message from anther module to Modbus module to issue an Modbus write operation. To do so, you must implement a module that receives commands from your Andriod device (if this is what Andriod device for), and then translate commands into Modbus module "Command Message" and use IoT Edge routing configuration to route message this to Modbus module.

yphuangms commented 3 years ago

Close for inactivity.