Last updated:
0 purchases
openmodbus dart
openmodbus_dart #
An OpenModbus JSON Spec Parser for dart.
Inspired by OpenAPI, OpenRPC, and OpenAI function calling example.
Features #
Load OpenModbus json file, and convert to dart object.
Usage #
According to /example/openmodbus_dart_example.dart.
From JSON String
Future<void> main() async {
String jsonString = "{...OpenModbus String...}";
OpenModbusLoader openModbusLoader = OpenModbusLoader();
OpenModbus openModbus = await openModbusLoader.load(jsonString);
}
copied to clipboard
From JSON File
Future<void> main() async {
String jsonPath = "$currentWorkingDirectory/example/json/$jsonFileName";
OpenModbusLoader openModbusLoader = OpenModbusLoader();
OpenModbus openModbus = await openModbusLoader.loadFromFile(jsonPath);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.