|
|
应答用户报告事件处理程序:
- static int user_report_reply_event_handler(const int devid, const int msgid, const int code, const char *reply,
- const int reply_len)
- {
- const char *reply_value = (reply == NULL) ? ("NULL") : (reply);
- const int reply_value_len = (reply_len == 0) ? (strlen("NULL")) : (reply_len);
- EXAMPLE_TRACE("Message Post Reply Received, Devid: %d, Message ID: %d, Code: %d, Reply: %.*s", devid, msgid, code,
- reply_value_len,
- reply_value);
- return 0;
- }
复制代码
|
|