How to use getDataFromMSDK()?

耗尽温柔 提交于 2019-12-09 04:28:26

The OSDK will call a user-defined callback whenever data is received from the MSDK.

To do this, first define a callback function that matches the typical VehicleCallback signature (for an example, see the L42 in the Mobile Communication Sample from OSDK 3.6). Next, call the setFromMSDKCallback API passing a pointer to your callback function and any data you might want to have accessible within that callback function (for an example, see L128 in the same sample code).

The final step is to access recvFrame.recvData.raw_ack_array in your callback function; this is the raw byte data you sent from the mobile device.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!