diff --git a/api/app/Http/Controllers/V1/Partners/AdtController.php b/api/app/Http/Controllers/V1/Partners/AdtController.php index 2b691de..b171d25 100644 --- a/api/app/Http/Controllers/V1/Partners/AdtController.php +++ b/api/app/Http/Controllers/V1/Partners/AdtController.php @@ -34,7 +34,8 @@ class AdtController extends Controller } // publish to MQTT Broker - Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), $request->user()->id); + // Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), $request->user()->id); + Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), 1); DB::table('adt')->insert($dbEvents); return response()->json(['success' => 'success'], 200);