i have a data structure passed into a dialog which contains a numeric value
data={.... , sequence=23, ...}
the dialog template has this field
I had to explicitly set the type as numeric to get the numeric keyboard.
(I really just want the up/down increment type input)
<ion-input type="number" inputmode="numeric" id="vsequence" v-model="datacopy.sequence">
i enter the number , or not
and on dialog save, I get this back out
data={.... , sequence="23", ...}
I send that (ble.write) to my hardware, and its unhappy with the format…
as it should be (the hardware tries to parse into hex value) so result would be x’17’).
I’m adding a parseInt() after getting the data back from dialog, but don’t think I should have to .
what am I doing wrong?