schollz / find

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

MQTT is not enabled on this server #180

Closed SaminKainat closed 7 years ago

SaminKainat commented 7 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 7 years ago

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

SaminKainat commented 7 years ago

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

schollz commented 7 years ago

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

SaminKainat commented 7 years ago

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