- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My app uses both the peripheral.name AND the advertisementData[CBAdvertisementDataLocalNameKey]. But every time I update advertisementData[CBAdvertisementDataLocalNameKey] by means of the CyBle_GapSetLocalName(), the peripheral.name value takes on the old value of advertisementData[CBAdvertisementDataLocalNameKey]. Is there anyway to stabilize the peripheral.name value so that it never changes from the initial value given when the 4200BLE is initially programmed?
Thanks.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
Do you mean you want to save the device name into flash , so that the last name should be stored even after power cycle?
If then, you can write the value into flash or sflash by the follwing APIs CySysFlashWriteRow() , CySysSFlashWriteUserRow()
Please refer the system reference guide for API defenition.
Thanks,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you please confirm you are calling CyBle_GapSetLocalName() before start advertisement API? Also please check the API result as well.
Thanks,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. That stopped the cycling I described. I have another question.
When I click debug or program sometimes the table of the S-Flash (or is it the Flash) memory pops up on my screen and sometimes it doesn't. What is happening in each case?
Also, if I want to flash a name onto a peripheral, a name that persists when there is no power on the chip, how can I do that. The Flash and S-Flash projects don't seem to address this. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
Do you mean you want to save the device name into flash , so that the last name should be stored even after power cycle?
If then, you can write the value into flash or sflash by the follwing APIs CySysFlashWriteRow() , CySysSFlashWriteUserRow()
Please refer the system reference guide for API defenition.
Thanks,
Anjana