tuxmartin

Untitled

Feb 8th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1.     if(strcmp(message->topic, "bt/tag_motion") == 0) {
  2.             printf("%s\n", (char*)message->topic);
  3.             //cout << "MSG from: bt/tag_motion" << endl;
  4.  
  5.             auto request = GetBtTag((const char *)message->payload);
  6.             auto key = request->key();
  7.  
  8.             ScanRequest sr;
  9.             sr.set_key(key->c_str());
  10.             //sr.set_key("Abc");
  11.  
  12.             Header *h (new Header);
  13.             h->set_id(generateRandomNumber());
  14.             h->set_type("ScanRequest");
Advertisement
Add Comment
Please, Sign In to add comment