完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
[WICED-SK-2.2.1]
这里有API吗? 以上来自于百度翻译 以下为原文 [WICED-SDK-2.2.1] Is there an API for this? |
|
相关推荐
1个回答
|
|
我们将在下一个版本的SDK这个API。
在那之前,你可以手动添加API如下: 将以下API函数原型添加到-lt:WIC-SDK-2.2.1和/WICES/WWD/COND/WWDWiWiF.H / *获取有关客户的信息。 * * @注只适用于如果SoftAP界面了 * *@ PARAM[OUT ]指向一个缓冲区的指针,该缓冲区将填充由@ REF WICEDIDMACLISTHT定义的可变长度结构 * @param [中]长度的缓冲区 * *@返回 */ ExtWiDeDeReultTytWiDeIDWiFixGETSyAsAsDigabyCclitType列表(ValueCclitListListBuffic,Unt1616t Buffell长度); 将下面的API调用添加到WICED SDK-2.2.1和/WICES/WWD/NET/WWDWWiFi.C中 WICEDDYRESUTTWITWIDEDWiFixGETHyAsAsApdioTyCelpEntListLoad(ValueCclitListListBuffor,Unt1616t BuffSerl长度) { WICEDED缓冲液缓冲液; WieDeff-Fuffelt反应; uint32_t *数据=(uint32_t *)wiced_get_ioctl_buffer(&;缓冲区,buffer_length); 校验-缓冲(数据); 如果(wiced_send_ioctl(sdpcm_get,wlc_get_assoclist,缓冲,&;响应,sdpcm_sta_interface)= = wiced_success) { memcpy(client_list_buffer,(void *)host_buffer_get_current_piece_data_pointer(响应),(size_t)min(host_buffer_get_current_piece_size(响应),buffer_length)); host_buffer_release(响应,wiced_network_rx); 回归成功; } 返回wiced_error; } 另外,该wiced_maclist_t结构看起来像这样… / * * *结构描述的一系列相关的“客户 * / typedef struct { uint32_t计数;/ * * & lt;列表中的MAC地址数* wiced_mac_t mac_list [ 1 ];/ * * & lt;MAC地址*变长数组/ } wiced_maclist_t; 以上来自于百度翻译 以下为原文 We will add an API for this in the next SDK release. Until then, you can add the API manually as follows: Add the following API function prototype to /** Gets information about associated clients. * * @note Only applicable if softAP interface is up * * @param[out] pointer to a buffer that will be populated with a variable length structure defined by @ref wiced_maclist_t * @param[in] length of the buffer * * @return @ref wiced_result_t */extern wiced_result_t wiced_wifi_get_associated_client_list( void* client_list_buffer, uint16_t buffer_length ); Add the following API call to wiced_result_t wiced_wifi_get_associated_client_list( void* client_list_buffer, uint16_t buffer_length ){ wiced_buffer_t buffer; wiced_buffer_t response; uint32_t* data = (uint32_t*) wiced_get_ioctl_buffer( &buffer, buffer_length ); CHECK_IOCTL_BUFFER( data ); if ( wiced_send_ioctl( SDPCM_GET, WLC_GET_ASSOCLIST, buffer, &response, SDPCM_STA_INTERFACE ) == WICED_SUCCESS ) { memcpy( client_list_buffer, (void*) host_buffer_get_current_piece_data_pointer( response ), (size_t)MIN(host_buffer_get_current_piece_size(response), buffer_length) ); host_buffer_release( response, WICED_NETWORK_RX ); return WICED_SUCCESS; } return WICED_ERROR;} FYI, the wiced_maclist_t structure looks like this ... /** * Structure describing a list of associated softAP clients */typedef struct{ uint32_t count; /**< Number of MAC addresses in the list */ wiced_mac_t mac_list[1]; /**< Variable length array of MAC addresses */} wiced_maclist_t;
最佳答案
|
|
|
|
只有小组成员才能发言,加入小组>>
716个成员聚集在这个小组
加入小组1901 浏览 1 评论
1652 浏览 1 评论
3405 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1568 浏览 6 评论
1380 浏览 1 评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
188浏览 2评论
184浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
322浏览 2评论
351浏览 1评论
63浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-24 21:06 , Processed in 0.550915 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号