- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Applications team: grsr riya rroy zhez zhxh yans kavs shjl
Per this thread and others on the same topic: Scan sometimes stops working (continued)
I think I have the same problem...
My sensor is always HIGH_UNDIRECTED_DISCOVERABLE. In the callback hello_sensor_advertisement_stopped function, I restart the bleprofile_Discoverable(HIGH_UNDIRECTED_DISCOVERABLE, NULL ).
My application works fine, I have two buttons in my sensor and I change led's color (to see if my app is not freez...). But when my board is ON more than 12 hours, I can't connect to it.... I can push button to change color, so my app works fine (uart works too) but it's like the BLE is gone in sleep mode.
My soft contains these functions:
void hello_sensor_enter_hidoff(void)
{
// Do nothing
}
void hello_sensor_abort_hidoff(void)
{
// Do nothing
}
the .cgs file contains:
ENTRY "PMU Crystal Warm up Time"
{
"Crystal warm up time" = 5000
}
################################################################################
# Low power configuration
###############################################################################
ENTRY "Sleep Mode Configuration"
{
"Sleep mode" = "HIDD"
"Sleep enable" = 0;
}
##############################################################################
Do you have any idea?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The API bleprofile_Discoverable() should work with HIGH_UNDIRECTED as well. Not sure why its failing after few hours.
Q) Does it exist a function which return the state of the BLE device (scanning or not)?
A) Do you mean scanning or advertising? If about advertising, you may try the API - bleprofile_GetDiscoverable(void); (/WICED-Smart-SDK/include/bleprofile.h) . Check if it helps your requirement.
Regards,
Anjana