Inheritance diagram for MqttSessionExample:Public Member Functions | |
| (void) | - onConnected |
| Called when MQTT session has been successfully connected to the server. | |
| (void) | - onError: |
| Called if MQTT session connection failed or was lost. | |
| (void) | - onMessagePublished |
| Called when a message has been successfully published to MQTT broker. This callback is invoked after a message (either position data or custom message) has been successfully sent to the MQTT broker. | |
Properties | |
| NCNavigineSdk * | sdk |
| NCLocationManager * | locationManager |
| NCNavigationManager * | navigationManager |
| NCMqttSession * | mqttSession |
MqttSession usage example for Dart/Flutter Demonstrates working with MQTT session for publishing position data
MqttSession usage example for Objective-C Demonstrates working with MQTT session for publishing position data
Definition at line 8 of file mqtt_session_example.dart.
| - (void) onConnected |
Called when MQTT session has been successfully connected to the server.
Swift code snippet:
Objective C code snippet:
| - (void) onError: | (nullable NSError *) | error |
Called if MQTT session connection failed or was lost.
| error | handled error. |
Swift code snippet:
Objective C code snippet:
| - (void) onMessagePublished |
Called when a message has been successfully published to MQTT broker. This callback is invoked after a message (either position data or custom message) has been successfully sent to the MQTT broker.
Swift code snippet:
Objective C code snippet:
|
readwritenonatomicstrong |
Definition at line 15 of file MqttSessionExample.m.
|
readwritenonatomicstrong |
Definition at line 17 of file MqttSessionExample.m.
|
readwritenonatomicstrong |
Definition at line 16 of file MqttSessionExample.m.
|
readwritenonatomicstrong |
Definition at line 14 of file MqttSessionExample.m.