Skip to content

Protocol translation from Modbus to MQTT/AMQP/HTTP for Azure IoT Hub

License

Notifications You must be signed in to change notification settings

snobu/modbus-notmodbus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modbus-notmodbus

Protocol translation from Modbus to MQTT/AMQP/HTTP for Azure IoT Hub

Configuration

Configuration is read from appsettings.json at runtime. All values should be decimal, not hex.

Expected output

[DEBUG] Setting new pollingInterval: 66 seconds
[DEBUG] Serialized telemetry object:
{
  "iotHubDeviceId": "ModbusCollector",
  "voltage": [
    780,
    780
  ],
  "current": [
    780,
    780
  ]
}
[DEBUG] Sending message to Azure IoT Hub...
[DEBUG] Sent was successful at 7/16/2018 6:28:04 AM

Sleeping for 66 seconds /

Polling interval can be controlled either through appsettings.json or Device Twin —

Device Twin screenshot

Modbus simulator (Windows only):

  • http://www.plcsimulator.org/downloads (MSI Windows Installer)
  • Install the Vista Reg key from that link as well
  • Click on the Scott Gu lookalike (red shirt) icon and click Walk to get random values away from zero

About

Protocol translation from Modbus to MQTT/AMQP/HTTP for Azure IoT Hub

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages