EC600U_esp32_iap_uart/HiLinkSDK/adapter/hilink_open_nan_adapter.c

75 lines
1.2 KiB
C
Raw Normal View History

2024-02-05 17:39:56 +08:00
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved.
* Description: ģ<EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD>ӿں<EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD>)
*/
#include "hilink_open_nan_adapter.h"
#include <stdlib.h>
void HILINK_RegSoftApEventCallback(SoftApEventCallback callback)
{
return;
}
int HILINK_NanInit(void)
{
return 0;
}
int HILINK_NanUninit(void)
{
return 0;
}
int HILINK_NanStartSubscribe(const char *serviceName, unsigned char localHandle, void *handle)
{
if ((serviceName == NULL) || (handle == NULL)) {
return -1;
}
return 0;
}
int HILINK_NanStopSubscribe(unsigned char localHandle)
{
return 0;
}
int HILINK_NanSendPacket(unsigned char *macAddr, unsigned char peerHandle, unsigned char localHandle,
unsigned char *msg, int len)
{
if ((macAddr == NULL) || (msg == NULL)) {
return -1;
}
return 0;
}
int HILINK_NanSwitchSafeDistance(void)
{
return 0;
}
int HILINK_NanSwitchNormalDistance(void)
{
return 0;
}
int HILINK_NanBeaconSwitch(unsigned char enable)
{
return 0;
}
int HILINK_SetSafeDistancePower(signed char power)
{
return 0;
}
int HILINK_SoftApDeauthStation(const unsigned char *mac, unsigned char len)
{
if (mac == NULL) {
return -1;
}
return 0;
}