iot_mqtt_message 1.0.0 copy "iot_mqtt_message: ^1.0.0" to clipboard
iot_mqtt_message: ^1.0.0 copied to clipboard

A Flutter package for integrating MQTT communication into Flutter projects. Simplifies sending POST requests to MQTT brokers with a getApi method. Ideal for building IoT applications.

flutter_mqtt_api #

A Flutter package to handle API calls to an MQTT server.

Usage #

The IOTMqttMessage class in this package provides a convenient way to send POST requests to an MQTT server. Here's how you can use it:

dependencies:
  iot_mqtt_message: ^1.0.0

  Future<String> getApi({String url = "", Map<String, dynamic> body}) async


IOTMqttMessage mqttMessage = IOTMqttMessage();
String response = await mqttMessage.getApi(url: "https://example.com/api", body: {"key": "value"});
print(response);
2
likes
130
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for integrating MQTT communication into Flutter projects. Simplifies sending POST requests to MQTT brokers with a getApi method. Ideal for building IoT applications.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on iot_mqtt_message