Appendix Writing the configuration script to the printer You can save a configuration script to the printer using the HTTP POST method. You can save the configuration script to volatile or non-volatile memory. When changing using a low frequency less than once an hour, you can save to non-volatile memory; however, when changing at a higher frequency, you need to save to volatile memory. When the change is successful, the advertising data is changed. Request Content-Type: text/json; charset=utf-8 http://(printer IP address)/webconfig/beacon.cgi See the POST parameters in Table 10 Response for the parameters. Response Table 9 Response Header Content-Type:
application/json; charset=utf-8 Access-Control-Allow-Origin: * Access-Control-Allow-Methods: POST, GET, OPTIONS, HEADER Access-Control-Allow-Headers: Content-Type, Content-Length, Authorization X-Content-Type-Options: nosniff X-XSS-protection: 1; mode=block X-Frame-Options: deny Content-Security-Policy: default-src 'none' X-RateLimit-Limit: 1 (when type=static only) X-RateLimit-Remaining: 1 or 0 (when type=static only) X-RateLimit-Reset: 1390941626 (when type=static only) WWW-Authenticate: Digest realm=" ", nonce="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", qop="auth" 149 Response Status Response Body 200 OK The HCI Version for the Bluetooth adapter is 5 or lower { "message": "Success", "detail":
null, "description" : { “VendorID”: “0a12”, “ProductID”: “0001”, “ProductName”: “(no name)”, “Bluetooth LE”: “Not support” } } 404 Not Found Adapter not connected "message": "Beacon dongle not connected", "detail": null, "description" : null }