Firefly开源社区

标题: mac地址 [打印本页]

作者: thong    时间: 2015-4-28 11:52
标题: mac地址
想问下大神们如何读取芯片本身的MAC地址?
作者: FireBLE_blue    时间: 2015-4-28 17:10
蓝牙地址保存在nvds ,用nvds api 读即可   

  1. /// List of NVDS TAG identifiers
  2. enum NVDS_TAG
  3. {
  4.     /// Definition of the tag associated to each parameters
  5.     /// Local Bd Address
  6.     NVDS_TAG_BD_ADDRESS                 = 0x01
  7. }
复制代码

作者: thong    时间: 2015-4-28 17:23
FireBLE_blue 发表于 2015-4-28 17:10
蓝牙地址保存在nvds ,用nvds api 读即可

nvds_get(NVDS_TAG_BD_ADDRESS, &ADDS_LEN,val);
这样读出来后val数组中的值为空,不知道为什么?
作者: FireBLE_blue    时间: 2015-4-28 17:56
用QnNVDSConfigurator 能读出来不?




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1