tuxmartin

Untitled

Jan 14th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1.     if(strcmp(message->topic, "persistence/cloud_config") == 0) {
  2.         printf("%s\n", (char*)message->topic);
  3.  
  4.         if ( strcmp((const char *)message->payload, "null") ) {
  5.             auto request = GetCloudConfig((const char *)message->payload);
  6.  
  7.             cout << message->payload << endl;
  8.  
  9.             auto endpoint = request->endpoint();
  10.             auto token = request->token();
Advertisement
Add Comment
Please, Sign In to add comment