- MIT license
- .NET Core 2.1+
- Uses ModbusTcp library from Aviad Mizrachi
- Easy configuration through
appsettings.json
Configuration is read from appsettings.json
at runtime. All values should be decimal, not hex.
[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 —
- 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