mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 00:39:52 +00:00
fix:Yellow and blue area difference code synchronization
Signed-off-by: 姚望 <yaopwang@huawei.com>
This commit is contained in:
parent
0028ddd38e
commit
535be1fa33
@ -21,28 +21,6 @@
|
||||
|
||||
static char const *g_pkgName = "ohos.dsoftbus.tool";
|
||||
|
||||
|
||||
static void PrintNodePropertyNum(const NodeBasicInfo *nodeInfo)
|
||||
{
|
||||
NodeDeviceInfoKey key;
|
||||
key = NODE_KEY_NETWORK_CAPABILITY;
|
||||
int32_t netCapacity = 0;
|
||||
if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key,
|
||||
(uint8_t *)&netCapacity, LNN_COMMON_LEN) != 0) {
|
||||
printf("GetNodeKeyInfo Fail!\n");
|
||||
} else {
|
||||
printf("netCapacity = %d\n", netCapacity);
|
||||
}
|
||||
key = NODE_KEY_NETWORK_TYPE;
|
||||
int32_t netType = 0;
|
||||
if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key,
|
||||
(uint8_t *)&netType, LNN_COMMON_LEN) != 0) {
|
||||
printf("GetNodeKeyInfo Fail!\n");
|
||||
} else {
|
||||
printf("netType = %d\n", netType);
|
||||
}
|
||||
}
|
||||
|
||||
static void PrintNodeProperty(const NodeBasicInfo *nodeInfo)
|
||||
{
|
||||
printf("DeviceName = %s\n", nodeInfo->deviceName);
|
||||
@ -90,6 +68,26 @@ static void PrintNodeProperty(const NodeBasicInfo *nodeInfo)
|
||||
}
|
||||
}
|
||||
|
||||
static void PrintNodePropertyNum(const NodeBasicInfo *nodeInfo)
|
||||
{
|
||||
NodeDeviceInfoKey key;
|
||||
key = NODE_KEY_NETWORK_CAPABILITY;
|
||||
int32_t netCapacity = 0;
|
||||
if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key,
|
||||
(uint8_t *)&netCapacity, LNN_COMMON_LEN) != 0) {
|
||||
printf("GetNodeKeyInfo Fail!\n");
|
||||
} else {
|
||||
printf("netCapacity = %d\n", netCapacity);
|
||||
}
|
||||
key = NODE_KEY_NETWORK_TYPE;
|
||||
int32_t netType = 0;
|
||||
if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key,
|
||||
(uint8_t *)&netType, LNN_COMMON_LEN) != 0) {
|
||||
printf("GetNodeKeyInfo Fail!\n");
|
||||
} else {
|
||||
printf("netType = %d\n", netType);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user