Echo back ping payload.

This commit is contained in:
Adam Ierymenko 2017-05-02 17:28:18 -07:00
parent 8e19188f49
commit d7c99728bc

View File

@ -1045,7 +1045,7 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST(
_queue.post(qe); _queue.post(qe);
char tmp[64]; char tmp[64];
Utils::snprintf(tmp,sizeof(tmp),"{\"clock\":%llu}",(unsigned long long)now); Utils::snprintf(tmp,sizeof(tmp),"{\"clock\":%llu,\"ping\":%s}",(unsigned long long)now,OSUtils::jsonDump(b).c_str());
responseBody = tmp; responseBody = tmp;
responseContentType = "application/json"; responseContentType = "application/json";