11-03-2020, 04:16 PM
I used also the formattedString BLE Wiki on PhyPhox, but here was the input in PhyPhox empty (no warning for a missing characteristic), but BLExplorer the values showed up (see attached screenshots)
Code:
<phyphox xmlns="http://phyphox.org/xml" xmlns:editor="http://phyphox.org/editor/xml" version="1.7" editor:version="1.0" locale="de">
<title>micro:bit Voltage & Rotation</title>
<category>Bluetooth</category>
<description>Read the rotation and analog voltages from pin 0 </description>
<translations>
<translation locale="de">
<title>Micro:Bit Spannungsmessung</title>
<description>Den Rotationswinkel und die analoge Spannung an Pin 0 messen.</description>
<string original="rotation">Winkel</string>
<string original="voltage">Spannung</string>
<string original="Voltage">Spannung</string>
<string original="Rotation">Winkel</string>
</translation>
</translations>
<data-containers>
<container size="0" static="false">t</container>
<container size="1000" static="false">Output 3</container>
<container size="1000" static="false">product</container>
</data-containers>
<input>
<bluetooth editor:uuid="101" editor:posx="26" editor:posy="269" name="BBC micro:bit" mode="notification" rate="1" subscribeOnStart="false">
<output char="6E400002-B5A3-F393-E0A9-E50E24DCCA9E" conversion="formattedString" separator="";"" index="0">t</output>
<output char="6E400002-B5A3-F393-E0A9-E50E24DCCA9E" conversion="formattedString" separator="";"" index="1">Output 3</output>
</bluetooth>
</input>
<output>
</output>
<analysis sleep="0" onUserInput="false">
<multiply editor:uuid="250" editor:posx="174.03334045410156" editor:posy="519.3500061035156">
<input as="factor" type="value">0.011764706</input>
<input as="factor" clear="false">Output 3</input>
<output as="product">product</output>
</multiply>
</analysis>
<views>
<view label="Raw Data">
<graph editor:uuid="156" editor:posx="552" editor:posy="323" label="" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="false" history="1" labelX="rotation" labelY="voltage" labelZ="" unitX="s" unitY="V" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="3" zPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="fixed" scaleMaxY="fixed" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="3" minZ="0" maxZ="0" mapWidth="0" >
<input axis="x">t</input>
<input axis="y">product</input>
</graph>
</view>
<view label="Simple">
<value editor:uuid="200" editor:posx="389.29998779296875" editor:posy="172.0500030517578" label="Voltage" size="1" precision="2" scientific="false" unit="V" factor="1" >
<input>product</input>
</value>
<value editor:uuid="213" editor:posx="294.4666748046875" editor:posy="18.76666259765625" label="Rotation" size="1" precision="2" scientific="false" unit="Deg" factor="1" >
<input>t</input>
</value>
</view>
</views>
<export>
<set name="Data Export">
<data name="rotation">t</data>
<data name="voltage">product</data>
</set>
</export>
</phyphox>