salmanzafar949 / Laravel-Mqtt-Example

0 stars 5 forks source link

Unable to connect #1

Open jasmt-us opened 4 years ago

jasmt-us commented 4 years ago

Struggling to get baseline working.

1) Cloned Repo 2) composer update 3) npm install 4) edited config/mqtt.php 5) created .env from default and modified APP and DB settings

modified (for my sanity - but was not working before either) the following two lines to look like:

Route::get('/mqtt/pub/{topic}/{message}', 'MqttExampleController@SendMsgViaMqtt'); Route::get('/mqtt/sub/{topic}', 'MqttExampleController@SubscribetoTopic');

For subscription - blank screen, and for publish:

"The Response content must be a string or object implementing __toString(), "boolean" given."

Any suggestions/guidance appreciated.

ddcbeatty commented 4 years ago

Would love a tutorial on setting this up....

subhadipghorui commented 4 years ago

yes

ossbn-mhotta commented 2 years ago

+1