I have created my new object under 3336/0/0, with following method.
static M2MResource location_res = add_resource(&obj_list, 3336, 0, 0, “Location_resource”, M2MResourceInstance::STRING,M2MBase::GET_POST_ALLOWED, “”, false, callback(&get_location));*
I have set callback for get_location.
once i use post option for this object from cloud page, my callback is triggered for 5 times.
I was expecting it should be for 1 time only.
I have analysed, every 2 sec my callback is triggered for 5 times.
if my callback is finished within 2 sec, i am not getting multiple trigger.
is it the right behaviour ??
If yes, Is there is any way , so i can send response to cloud, so that it can not trigger again and again ??