Hello
I don't want to write or read data through the terminal. I want to add an array in 001-m17-ble program to put my prepared data in it. Then every time I read it with my mobile phone, 001-m17 will send one of the data in the array to my mobile phone. How do I add this array?
Thank you!
Hi,
Hope you are doing well. What example are you using as a base? What do you mean with "Then every time I read it with my mobile phone, 001-m17 will send one of the data in the array"?
Could you clarify?
Regards,
Ricardo
Hello.
This is the case. I built a map of my house. Now I'm going to select a few pairs of coordinates from my map, turn them into an array and write them into a routine. After this routine establishes a connection with my mobile phone, I read these coordinates through my mobile phone. Each time I read them, 001-M17 will return a pair of coordinate values to my mobile phone.
Thank you!
Hi,
From your description, I think the Wireless UART may not be the best example. I would recommend to check these post:
Creating a custom profile using NXP BLE stack – Server
How to create a Custom Profile - Client
Still, if for any reason you want to continue with this example, you should check the void BleApp_FlushUartStream(void *pParam) function, as in this is the one that sends data over the air.
I would recommend focusing on this section, if you don't want to "receive" from the terminal, but you can add here the coordinates data you mention, to send it to your phone.
Hope this helps.
Regards,
Ricardo
HI
In the end, I determined a method, or I need to modify the program of this diagram provided by you. The part I modified is shown in the second diagram, but the third diagram will have a warning. How can I modify it to avoid a warning?
Thank you!
In gatt_db.h, I'm going to replace (" MANUFACTURER_NAME ") with a function (#define) that returns an integer. specific code of the modification is shown in the figure below. But this always results in some errors. I don't know how to modify it.
Hello.
I want to replace the PMG in it with an array. Can this be realized? How can I modify it.
Thank you!
I think of a way: can the battery service or device information service in the following picture be changed to an array? For example, replace "manufacturer's_name" with an array, and then I can see the data in the array when I read it on my mobile phone.