Go to documentation repository
For working with messages, you may use the classes provided: Event and React, declared in the msg.h file.
Example of using the react class:
A message composed without using the classes | A message composed using the React class |
CString msg = “CORE||DO_REACT|source_type<TELEMETRY>,source_id<1.1>, action<GO_PRESET>,params<2>,param0_name<preset>,param0_val<4>, param1_name<tel_prior>,param1_val<2>”; SendMsg(id,msg);
| React react(“TELEMETRY”,”1.1”,”GO_PRESET”); react.SetParamInt(“preset”,4); react.SetParamInt(“tel_prior”,2); SendMsg(id,react.MsgToString().c_str());
|
Note: