[Dev Env]
nRF51 DK
IoT SDK 0.8
IoT SoftDevice
[Question] i am work in ipv6 coap Server example.
in main function pstorage_store/pstorage_update work well. the storage_cb_handler function called well.
but timer_handler / coap_endpoint callback function pstorage_update not work. storage_cb_handler function not called.
please help me.
[Code-PStorage_init]
err_code = pstorage_init(); APP_ERROR_CHECK(err_code);
param.block_size = BLOCK_SIZE; param.block_count = BLOCK_COUNT; param.cb = storage_cb_handler;
[Code-COAP CallBack]
static coap_resource_t beacon_setting; err_code = coap_resource_create(&beacon_setting, m_endpoint_name_beacon_setting);
APP_ERROR_CHECK(err_code);
beacon_setting.permission = (COAP_PERM_GET | COAP_PERM_PUT);
beacon_setting.callback = beacon_setting_callback;
static void beacon_setting_callback(coap_resource_t * p_resource, coap_message_t * p_request)
{
err_code = pstorage_update(&m_block_handle_beacon, pstorage_data_beacon_data, BLOCK_SIZE, 0);
}