Hello friends!
I'm a student, I'm learning how to create an app on MIT App INVERTOR, I'm getting an error reading the percentage value constructor from the value I read. Error like this
Reading your code, I see (Uint8 *) which I imagine to be a type of sequence of 8 bit unsigned ints (bytes), and the number 4, which matches up with your length of received list and numeric ranges of those 4 items.
The question is, what is the data type of &adc_result_0, which I imagine is what you are trying to send via meat chopper.
So you have a 32 bit integer, but you cut it up into 4 bytes to send it?
I see BLE has blocks to receive integers.
That would imply there should be commands upstream to send an integer.
That would make more sense than having to do reconstructive surgery at the AI2 side, right?
Taking a blind guess that the low order byte is arriving at item 1, and that this is a positive number, I would guess that this represents
211 + (2 * 256) + 0 * 256^2 + 0*256^3 =
211 + 512 =
723.
If that is possible, I would like to thank you!
I just found out about MIT App INVERTOR, I posted a post but I haven't received any help yet, I also did some research but I still have a lot of things unclear. Hope you can guide me!
Thank you!