This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

send mqtt command versus device
#1
Hi,  i configured an experiment with this network parameter

<connection address="MYSERVERIP:1883" autoConnect="true" interval="1" service="mqtt/json" receiveTopic="fancySensor/value" sendTopic="sensorlogger/data" id="test" privacy="https://phyphox.org/disclaimer/" conversion="json">
        <send id="x" type="buffer" datatype="number">accX</send>
        <send id="y" type="buffer" datatype="number">accY</send>
        <send id="z" type="buffer" datatype="number">accZ</send>
    </connection>

Is it possible via mqtt topic to send "start" and "stop" command to the device, like get command 

http://DEVICEIP:8080/control?cmd=start

http://DEVICEIP:8080/control?cmd=stop

I need to send data via receiveTopic?

My device is an Iphone

Is it possible to have an examples?

Thanks
Reply
#2
There are a few examples down at https://phyphox.org/wiki/index.php/Netwo...tions#MQTT

In my (naïve) understanding, phyphox just connects to an MQTT broker and continuously publishes or receives messages then.
Reply


Forum Jump: