OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
session.cpp File Reference

Macros

#define OT_BROADCASTMESSAGE_CREATE(___doc)   ot::JsonDocument ___doc; ___doc.AddMember(OT_ACTION_MEMBER, ot::JsonString(OT_ACTION_CMD_Message, ___doc.GetAllocator()), ___doc.GetAllocator());
 
#define OT_BROADCASTMESSAGE_ADDSENDERDATA(___doc, ___sender)   ___doc.AddMember(OT_ACTION_PARAM_SERVICE_ID, ___sender->id(), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_URL, ot::JsonString(___sender->url(), ___doc.GetAllocator()), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_NAME, ot::JsonString(___sender->name(), ___doc.GetAllocator()), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_TYPE, ot::JsonString(___sender->type(), ___doc.GetAllocator()), ___doc.GetAllocator());
 
#define OT_BROADCASTACTION_ADDSENDERDATA(___doc, ___sender)   ___doc.AddMember(OT_ACTION_PARAM_SERVICE_ID, ___sender->id(), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_URL, ot::JsonString(___sender->url(), ___doc.GetAllocator()), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_NAME, ot::JsonString(___sender->name(), ___doc.GetAllocator()), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_TYPE, ot::JsonString(___sender->type(), ___doc.GetAllocator()), ___doc.GetAllocator());
 

Macro Definition Documentation

◆ OT_BROADCASTACTION_ADDSENDERDATA

#define OT_BROADCASTACTION_ADDSENDERDATA ( ___doc,
___sender )   ___doc.AddMember(OT_ACTION_PARAM_SERVICE_ID, ___sender->id(), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_URL, ot::JsonString(___sender->url(), ___doc.GetAllocator()), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_NAME, ot::JsonString(___sender->name(), ___doc.GetAllocator()), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_TYPE, ot::JsonString(___sender->type(), ___doc.GetAllocator()), ___doc.GetAllocator());

◆ OT_BROADCASTMESSAGE_ADDSENDERDATA

#define OT_BROADCASTMESSAGE_ADDSENDERDATA ( ___doc,
___sender )   ___doc.AddMember(OT_ACTION_PARAM_SERVICE_ID, ___sender->id(), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_URL, ot::JsonString(___sender->url(), ___doc.GetAllocator()), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_NAME, ot::JsonString(___sender->name(), ___doc.GetAllocator()), ___doc.GetAllocator()); ___doc.AddMember(OT_ACTION_PARAM_SERVICE_TYPE, ot::JsonString(___sender->type(), ___doc.GetAllocator()), ___doc.GetAllocator());

◆ OT_BROADCASTMESSAGE_CREATE

#define OT_BROADCASTMESSAGE_CREATE ( ___doc)    ot::JsonDocument ___doc; ___doc.AddMember(OT_ACTION_MEMBER, ot::JsonString(OT_ACTION_CMD_Message, ___doc.GetAllocator()), ___doc.GetAllocator());