Your Wi-Fi bttn is capable of sending direct HTTP GET or POST requests, without going through the bt.tn server (feature available with firmware 201603 and later)


This is useful in situations requiring the fastest possible action or when your server is not accessible via open Internet. 


Please note that the bttn must still be connected to the bt.tn server: User account permissions, lights, power level monitoring, and signal level monitoring are all controlled by the bt.tn server and required for the bttn to work.


How to set up the aux HTTP requests:


To define the auxiliary HTTP request or requests, first put the bttn in Wi-Fi setup mode (AP mode), join bttnconf Wi-Fi with your PC or phone, and then go to address                                                               


192.168.0.1/bttn

 

just as you would do when setting up Wi-Fi connection. Then click “Show Advanced” to show the auxiliary HTTP request setup form.



To define aux HTTP request for short press: url1 (optional)


   GET request: url1=1.2.3.4/yourAction.php?param1=a&param2=b port=1234

   - or -

   POST request: url1=1.2.3.4/yourAction.php,param1=a&param2=b port=1234 method=post


   Press “Add” to store the setting. bttn will flash green once.


To define aux HTTP request for long press: url2 (optional)


   GET request:  url2=1.2.3.4/yourAction.php?param1=a&param2=b port=1234

   - or -

   POST request: url2=1.2.3.4/yourAction.php,param1=a&param2=b port=1234 method=post


   Press “Add” to store the setting. bttn will flash green once.


After adding the HTTP request you need, remember to save your Wi-Fi settings by clicking "Save" and bttn will connect to your Wi-Fi.


bttn will remember the aux HTTP settings even if you re-configure the Wi-Fi credentials later.