< Home

report-to-server

Function

The report-to-server command configures the destination server and port number to which APs report Bluetooth packets.

The undo report-to-server command restores the default destination server and port number to which APs report Bluetooth packets.

By default, no destination IP address or port number is configured for APs to report Bluetooth packets.

Format

report-to-server ip-address ip-address port port-num [ via-ac ac-port ac-port-num ]

report-to-server domain domain port port-num

undo report-to-server

Parameters

Parameter Description Value
ip-address ip-address

Specifies the IPv4 address of the location server to which APs report Bluetooth packets.

The value is in dotted decimal notation.

domain domain

Specifies the domain name of the location server to which APs report Bluetooth packets.

The value is a string of 1 to 255 characters.

port port-num

Specifies the destination port number on the location server to which APs directly report Bluetooth packets.

Specifies the destination port number on the location server to which APs report Bluetooth packets through an AC.

The value is an integer that ranges from 1 to 65535.
via-ac

Specifies that Bluetooth packets are reported to a location server through an AC.

-
ac-port ac-port-num

Specifies the destination port number on the AC to which APs report Bluetooth packets.

The value is an integer that ranges from 5000 to 65535.

Views

BLE profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the Bluetooth function is enabled, APs need to report collected Bluetooth data to a server. APs report the data using either of the following two methods:
  • Report the data directly to the server.
  • Report the data to the server through an AC.
Precautions

When configuring a port number, ensure that the port is not occupied by other services. If the port is occupied by other services, the port fails to be created.

For the same Bluetooth location function, Bluetooth data reporting through an AC can be configured only in one BLE profile. If Bluetooth data reporting through an AC has been configured in the current BLE profile for a Bluetooth location mode, the forwarding mode cannot be configured in other BLE profiles for the same Bluetooth location function.

Example

# Enable APs to report Bluetooth packets to the server with destination IP address 192.168.1.2 and port number 8569.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] ble-profile name huawei
[HUAWEI-wlan-ble-prof-huawei] report-to-server ip-address 192.168.1.2 port 8569
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >