How to convert received ASCII data to a value

Hi ABG, microbit have their own Bluetooth extension which I m using. Therefore I can't apply any trick u share on the ClientBluetooth1 block..:sweat_smile::sweat_smile:

Still thanks to ur offer of help. :pray:

The block you are running is called RunJavaScript and as input you provide some JavaScript. JavaScript has some handy functionality built-in to convert ASCII to UTF or whatever character set you have. So, what is your problem?

In the case that you receive one, two or three digits, the code should be...

Now that I understand the game, here is the map/reduce version, generalized to all text, based on @Italo's ASCII conversion:
AsciiCHRASCprocedures.aia (4.4 KB)


make_string_test_capture

1 Like

you can use the following extension:
ConversionAsciiTexte.aix (9.3 KB)

image

here is a documentation of the extension
https://community.appinventor.mit.edu/t/extension-app-inventor-pour-donner-le-code-ascii-dun-caractere-et-inversement/80397