map_client: fix get message

This commit is contained in:
Milanka Ringwald 2019-03-08 23:01:34 +01:00
parent 0cb4d92c9e
commit c7ad90d129
2 changed files with 7 additions and 5 deletions

View File

@ -265,7 +265,8 @@ static void map_handle_can_send_now(void){
application_parameters[pos++] = 0x14; // Charset
application_parameters[pos++] = 1;
application_parameters[pos++] = 1; // UTF-8
goep_client_add_header_application_parameters(map_client->goep_cid, 6, &application_parameters[0]);
map_client->state = MAP_W4_MESSAGE;
goep_client_execute(map_client->goep_cid);
break;

View File

@ -75,8 +75,9 @@ static bd_addr_t remote_addr;
// iPhone 5 static char * remote_addr_string = "6C:72:E7:10:22:EE";
// Android
static char * remote_addr_string = "a0:28:ed:04:33:b0";
static const char * folder_name = "telecom";
static map_message_handle_t message_handle;
static const char * folder_name = "inbox";
static map_message_handle_t message_handle = {0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
static char * path = "telecom/msg";
static btstack_packet_callback_registration_t hci_event_callback_registration;
@ -111,7 +112,7 @@ static void stdin_process(char c){
break;
case 'p':
printf("[+] Get folder listing\n");
printf("[+] Set path \'%s\'\n", path);
map_client_set_path(map_cid, path);
break;
case 'f':
@ -123,7 +124,7 @@ static void stdin_process(char c){
map_client_get_message_listing_for_folder(map_cid, folder_name);
break;
case 'l':
printf("[+] Get message for last found handle\n");
printf("[+] Get message for hardcoded handle\n");
map_client_get_message_with_handle(map_cid, message_handle, 1);
break;