shop-id
Function
The shop-id command configures shop information.
The undo shop-id command deletes shop information.
By default, no shop information is configured in the system.
Parameters
Parameter |
Description |
Value |
---|---|---|
shop-id |
Specifies the ID of the shop where an AP is located. The ID specified here must be the same as the ID configured when the shop information is added for the WeChat public account on the WeChat server. |
The value is a string of 1 to 32 characters without spaces. If the string is enclosed in double quotation marks, the string can contain spaces. |
secretkey secretkey |
Specifies the shared key that the shop and WeChat server use to authenticate each other. The shared key specified here must be the same as the key configured when the shop information is added for the WeChat public account on the WeChat server. |
The value is a string of 1 to 32 characters without spaces marks. If the character string is quoted by double quotation marks, the character string can contain spaces. |
ssid ssid |
Specifies the service set identifier (SSID) of the wireless network in the shop. All APs in a shop must have the same SSID. The SSID specified here must be the same as the SSID configured when the shop information is added for the WeChat public account on the WeChat server. |
The value must be an existing SSID. |
Usage Guidelines
In a WeChat authentication scenario, the device sends shop information to clients, and the clients then send shop information to the WeChat server for verification. After the verification succeeds, the clients visit the authentication URL to initiate authentication on the device. The device obtains shop information in either of the following ways:
Manual mode: Run the shop-id command to configure shop information.
Automatic mode: Run the wechat-server-ip command to enable the device to automatically obtain shop information from the WeChat server.
When WeChat authentication is required in a large number of shops, the automatic mode is recommended for convenient management and maintenance.
If both two commands are configured, the configuration of the shop-id command does not take effect.