04-10-2026, 11:12 AM
Sorry, we must have someone missed this post. Are you still trying to do this?
1) The issue here is that you are using the "config" tag. This is used to write configuration data (like setting a data rate on a sensor) right after phyphox has established a connection. So, in this case it is converting "TestValue" to a floating point value (not entirely sure, but that should turn into "Not a Number") and try to write it to the given cahracteristic on the Arduino. In order to read a value from the Arduino, this should be an output tag and the bluetooth tag should be within an input tag.
Indeed, the Arduino library currently does not include the GPS sensor, so the XML file like this:
Also, I would not use poll if it is not strictly necessary for your Arduino code. Notifications are usually a much better solution as the timing of the sensor is usually not controlled by the phone.
2) Unfortunately, the library currently does not support GPS (I am reallizing this myself just now). Since you are already writing your own XML config, I would recommend using the output from the library for any other sensor and then replacing the "sensor" tag in the input block with a "location" tag and the channels that you are interested in.
Let me know if you are still interested in this. I have now subscribed to this thread and should not miss your next post.
1) The issue here is that you are using the "config" tag. This is used to write configuration data (like setting a data rate on a sensor) right after phyphox has established a connection. So, in this case it is converting "TestValue" to a floating point value (not entirely sure, but that should turn into "Not a Number") and try to write it to the given cahracteristic on the Arduino. In order to read a value from the Arduino, this should be an output tag and the bluetooth tag should be within an input tag.
Indeed, the Arduino library currently does not include the GPS sensor, so the XML file like this:
Code:
<input>
<bluetooth name="..." uuid="..." id="..." autoConnect="..." mode="..." rate="..." subscribeOnStart="...">
<output ...>...</output>
</bluetooth>
</input>Also, I would not use poll if it is not strictly necessary for your Arduino code. Notifications are usually a much better solution as the timing of the sensor is usually not controlled by the phone.
2) Unfortunately, the library currently does not support GPS (I am reallizing this myself just now). Since you are already writing your own XML config, I would recommend using the output from the library for any other sensor and then replacing the "sensor" tag in the input block with a "location" tag and the channels that you are interested in.
Let me know if you are still interested in this. I have now subscribed to this thread and should not miss your next post.

