mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add send buffer
This commit is contained in:
parent
ae8d2166ac
commit
4ca5c91eb9
1 changed files with 5 additions and 4 deletions
|
@ -502,6 +502,7 @@ int handle_network_msg(char* msg)
|
|||
|
||||
int send_blob_attr_via_network(struct blob_attr *msg, char* method)
|
||||
{
|
||||
struct blob_buf b_send_network;
|
||||
char *data_str;
|
||||
char *str;
|
||||
printf("TO JSON\n");
|
||||
|
@ -509,15 +510,15 @@ int send_blob_attr_via_network(struct blob_attr *msg, char* method)
|
|||
printf("JSON FINISHED\n");
|
||||
|
||||
printf("ADD STRINGS!\n");
|
||||
blob_buf_init(&b, 0);
|
||||
blobmsg_add_string(&b, "method", method);
|
||||
blobmsg_add_string(&b, "data", data_str);
|
||||
blob_buf_init(&b_send_network, 0);
|
||||
blobmsg_add_string(&b_send_network, "method", method);
|
||||
blobmsg_add_string(&b_send_network, "data", data_str);
|
||||
printf("ADD FINISHED!\n");
|
||||
|
||||
|
||||
//blobmsg_add_blob(&b, msg);
|
||||
printf("TO JSON AGAIN\n");
|
||||
str = blobmsg_format_json(b.head, true);
|
||||
str = blobmsg_format_json(b_send_network.head, true);
|
||||
printf("TO JSON AGAIN FINISHED\n");
|
||||
printf("SENDING\n");
|
||||
send_string_enc(str);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue