openmodbus_dart

Last updated:

0 purchases

openmodbus_dart Image
openmodbus_dart Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.