int8_t irkit_httpclient_get_messages() { // /m?devicekey=C7363FDA0F06406AB11C29BA41272AE3&newer_than=4294967295 //char path[68]; //sprintf(path, P("/m?devicekey=%s&newer_than=%ld"), keys.getKey(), newest_message_id); char path[109]; // added 29 chars path,12 chars messageid sprintf(path, P("/_ah/api/southbound/v1/messages?devicekey=%s&newer_than=%ld"), keys.getKey(), newest_message_id); return gs.get(path, &on_get_messages_response, 50); }
int8_t irkit_httpclient_get_messages() { // /m?devicekey=C7363FDA0F06406AB11C29BA41272AE3&newer_than=4294967295 char path[70]; sprintf(path, P("/m?devicekey=%s&newer_than=%ld"), keys.getKey(), newest_message_id); return gs.get(path, &on_get_messages_response, 50); }