mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 00:21:19 +00:00
small fix
This commit is contained in:
parent
0e7fcd6517
commit
b32528048e
@ -26,6 +26,9 @@ class MQTTHelper {
|
||||
handleMessage(appContext, c);
|
||||
});*/
|
||||
} else {
|
||||
print("Coucou test");
|
||||
print(tabletAppContext);
|
||||
print(tabletAppContext.clientMQTT);
|
||||
tabletAppContext.clientMQTT!.updates!.listen((List<MqttReceivedMessage<MqttMessage>> c) async {
|
||||
handleMessage(appContext, c);
|
||||
});
|
||||
@ -178,7 +181,7 @@ class MQTTHelper {
|
||||
tabletAppContext.clientBrowserMQTT!.disconnect();
|
||||
}*/
|
||||
} else {
|
||||
tabletAppContext.clientMQTT = MqttServerClient.withPort(hostToTake!.replaceAll('https://api.', ''), 'tablet_app_'+identifier!, 1883);
|
||||
tabletAppContext.clientMQTT = MqttServerClient.withPort(hostToTake!.replaceAll('https://api.', ''), 'tablet_app_'+identifier, 1883);
|
||||
tabletAppContext.clientMQTT!.logging(on: true);
|
||||
tabletAppContext.clientMQTT!.keepAlivePeriod = 20;
|
||||
tabletAppContext.clientMQTT!.onDisconnected = onDisconnected;
|
||||
|
||||
@ -44,6 +44,7 @@ void main() async {
|
||||
}
|
||||
} else {
|
||||
print("NO LOCAL DB !");
|
||||
localContext = TabletAppContext(host: "https://api.mymuseum.be");
|
||||
}
|
||||
|
||||
if(kIsWeb) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user