Commit 509aa759b83671b3c952ed7e1680e75879a90e79

Authored by George Vlahavas

Merge branch 'master' of interlab.csd.auth.gr:anaskos/curex-knowledge-extraction-analytics-kea

Showing 1 changed file

api/app/Http/Controllers/V1/Partners/AdtController.php View file @ 509aa75
... ... @@ -34,7 +34,8 @@
34 34 }
35 35  
36 36 // publish to MQTT Broker
37   - Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), $request->user()->id);
  37 + // Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), $request->user()->id);
  38 + Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), 1);
38 39 DB::table('adt')->insert($dbEvents);
39 40  
40 41 return response()->json(['success' => 'success'], 200);