Homepage GitHub

Battery_info:model_name


(Skyyuzhang) #1

why my model is numbers? can I mae text? or make stuff like the end picture? thank you!!!


(Pavel Kirienko) #2

ASCII text and integer arrays are represented by the protocol identically (this could be improved; however, this is a minor issue of a very low priority; after all, the protocol is designed for control tasks in the first order, where text is rarely useful). When you see text in the message view widget, that text is rendered by the GUI tool itself when it believes that the array of integers might actually be a sensible string of text. The heuristics for that decision are implemented here:

The text in your example is not a valid ASCII string because it contains ordinals outside of the printable ASCII range (zeros and 128).