Modified PubNub library to better utilize low bandwidth connections like a GSM modem. Instead of 10 socket connections sending 3 bytes only one is made and it sends all 30 bytes at the same time.
Fork of PubNub by
Diff: PubNub.h
- Revision:
- 4:a4759c403023
- Parent:
- 3:36f064f7bdf0
- Child:
- 5:cfcba723d245
--- a/PubNub.h Sun Mar 02 01:47:11 2014 +0000 +++ b/PubNub.h Sun Mar 02 01:48:40 2014 +0000 @@ -166,7 +166,7 @@ if (p.history("demo", &reply, &replysize) != PNR_OK) return; if (!reply) return; for (char *msg = reply; msg < reply + replysize; msg += strlen(msg)+1) - printf("historic message: %s", msg); + printf("historic message: %s\n", msg); free(reply); * @endcode *