- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to implement sleep to reduce battery usages and I have written the below lines. But there is no effect on the current consumption on multimeter (7.1mA). Could you please guide me where I am wrong?
APPLICATION_START()
{
wiced_transport_init( &transport_cfg );
wiced_set_debug_uart( WICED_ROUTE_DEBUG_TO_PUART );
wiced_hal_puart_select_uart_pads( WICED_PUART_RXD, WICED_PUART_TXD, 0, 0);
wiced_hal_puart_set_baudrate(115200);
logd("**** App Start **** \n\r");
wiced_result_t state = wiced_hal_i2c_init(1);
wiced_hal_i2c_set_speed(I2CM_SPEED_100KHZ);
wiced_bt_app_start_timer(0,1, app_timeout, NULL);
logd("****After timer. **** \n\r");
wiced_sleep_config( WICED_TRUE, NULL, NULL ); I have tried to pass NULL here but I am getting error message "incompatible type for argument 2 & 3 of 'wiced_sleep_config'"
wiced_sleep_config( WICED_TRUE, WICED_WAKE_GPIO_ACTIVE_LOW, WICED_WAKE_GPIO_ACTIVE_LOW );
wiced_power_save_start(WICED_WAKE_SOURCE_ALL,10000);
}
Thanks and regards,
Neeraj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I only tested wiced_sleep_config() working on v2.1.0 before. It seems that wiced_power_save_register_approve_cback() remains unavailable on v2.1.0.
Then I think all you can do for now is switching to WICED Studio 6.2. The two functions are both tested available on WICED Studio 6.2. But please keep in mind that the APIs can still be malfunctioning, though available.
Best regards