Function SimOneAPI::ReceiveRouteMessageCB

Function Documentation

bool SimOneAPI::ReceiveRouteMessageCB(void (*cb)(int fromId, ESimOne_Client_Type fromType, int length, const void *pBuffer, int commandId))

节点通信数据接收API

  • function: ReceiveRouteMessageCB

  • brief: API Recvice data from other node.

参数

cb – call back func registered for receiving message param[out]: fromId: the node’s id which the message sent from param[out]: fromType: the node’s type which the message sent from param[out]; length: the data length recevied param[out]; pBuffer: the data content recevied param[out]; commandId: not in use

返回

Success or not