schollz / find

High-precision indoor positioning framework for most wifi-enabled devices.
https://www.internalpositioning.com/
GNU Affero General Public License v3.0
5.03k stars 370 forks source link

MQTT is not enabled on this server #180

Closed SaminKainat closed 6 years ago

SaminKainat commented 6 years ago

while configuring FIND server, i have tested my mqtt server using this command mosquitto_pub -d -t hello/world -m This is successfully running.

but, when i write this command

curl -X PUT 127.0.0.1:8003/mqtt?group=test, i get the following error.

{"message":"MQTT is not enabled on this server","success":false}

What could be the reason of this error? if anybody can help?

schollz commented 6 years ago

Did you add the -mqtt flag when you started the FIND server? See these instructions.

SaminKainat commented 6 years ago

I think not. Can you please tell me how to add mqtt flag?

schollz commented 6 years ago

See the link above. You can set the flag when you run the server

SaminKainat commented 6 years ago

Thankyou for your response. Resolved my error through this command ./find -mqtt MQTTSERVER:1883 :FINDPORT