Loading…

IoT device connection and usage tutorial

#Hardware equipment purchase Scan the QR code to purchase as needed ![](https://dcdn.it120.cc/yuque/0/2023/jpeg/572726/1697332706465-3a57bd65-c35b-4950-8fa9-d15fda5f9e33.jpeg) **Power supply, 5V DC power supply, don’t connect the positive and negative poles wrongly, otherwise it will burn if the voltage does not match! ! !** # Device initialization, network configuration, and docking ## Status information 1. If the 16-way relay lights up and then turns off, it means there is no distribution network. At this time, WiFi distribution network needs to be performed first. After connecting to WiFi, it can work later. 2. Enter the airkiss distribution network mode. The 16th relay will always be lit. After the network distribution is successful, the 16th relay will be closed. 3. If normal networking is successful, relay No. 16 will be powered on (open and close immediately) ## Restore factory settings Press the reset button 5 times in succession. Don’t press it too fast. Press the button once every half a second. Don’t press it too slowly. The interval cannot exceed 2 seconds. ## Function button usage 1. Press 3 times to enter the airkiss network configuration mode. Please follow the network configuration tutorial to configure the network; 2. Press 5 times in a row to check all relays once, light them up and turn them off at once; 3. Press 6 times to light up all relays; 4. Press 7 times to turn off all relays; ## Distribution network 1-way and 4-way boards can only be configured after restoring the factory settings in the previous step. For the 24-channel board, you can configure the network when restoring the factory settings, or you can press and hold the KEY button on the board for 3 seconds to automatically enter the network reconfiguration process (the factory settings will not be restored, and the configuration will not be lost) Connect your mobile phone to the WiFi that requires network configuration (the name cannot have a Chinese name, must be 2.4G, and does not support 5G), and then scan the code on WeChat to configure the network. There will be a prompt if successful. ![](https://dcdn.it120.cc/yuque/0/2023/png/572726/1697333403592-12d53b95-0d7c-41bd-8c12-08e387fd6b8a.png) If the above does not work, download the network configuration APP and configure the network. [https://www.espressif.com.cn/zh-hans/support/download/apps](https://www.espressif.com.cn/zh-hans/support/download/apps) DownloadESP-TOUCH for Android or ESP-TOUCH for iOS## docking After the network configuration is successful, Contact support will help you connect the hardware and import the instruction set. ![](https://dcdn.it120.cc/yuque/0/2023/png/572726/1697333640146-8eb87d05-af6e-487a-bec6-b9a37f8696e3.png) #Background control device ## Enable plugin 1. If you are a free member, it is a pity that you cannot use the plug-in function of apifm for the time being; 2. If you are a professional version member, log in to the backend, go to the left menu "Factory settings" --> "Plugin management", find the "IoT" plug-in, and purchase it online to activate it; 3. If you are a value-added member, you don’t need to do anything, you can use all plug-in functions for free; ## Enable module ![](https://dcdn.it120.cc/yuque/0/2023/png/572726/1697333730408-c7a4d022-8f4a-432c-aeb9-25b5e2a830df.png) ## Manual control device ![](https://dcdn.it120.cc/yuque/0/2023/png/572726/1697334309401-6eb31f5f-7f2d-43ef-8a22-5d4221f35b65.png) ![](https://dcdn.it120.cc/yuque/0/2023/png/572726/1697334345798-41b29dc6-f937-42c5-813c-cef7897b2095.png) You can click "Execute" to test whether your hardware and wiring are correct # Binding products and instructions ![](https://dcdn.it120.cc/yuque/0/2023/png/572726/1697334754751-3bebeae4-b7a0-4f47-a3cb-e902b6e13b1a.png) ![](https://dcdn.it120.cc/yuque/0/2023/png/572726/1697334682390-731710a6-afa1-4b69-b6ff-e2b92259b661.png) The product ID is bound to the specific instruction. This instruction can be bound to a certain product. Common usage scenarios are as follows: ## Vending machine After the user places an order to purchase goods on the mini program, h5, web, or app, the system automatically activates the power switch, opens the door or gate, or controls the rotation of the motor to eject the goods. ## Unmanned hotels, chess and card rooms, dance studios, gyms, tea rooms, etc. This need is combined with the daily pricing and period pricing of goods to provide users with a reservation function. According to the scheduled date and period, the user executes control instructions (such as opening the door, turning on the lights, closing the curtains, etc.) After the reservation time is over, the system automatically triggers control instructions, such as automatically cutting off the power when the reservation time is up. For the SDK methods related to the front-end calling instructions, please view the SDK: [https://www.yuque.com/apifm/nu0f75/rek5dwng8b9cdoko](https://www.yuque.com/apifm/nu0f75/rek5dwng8b9cdoko) # Control hardware in third-party systems [##/home](##/home) In the Backend API docs, search for iot in the upper right corner. By calling the api interface, you can control any device and execute any command. For interface call authorization, please view the following documents: [https://www.yuque.com/apifm/doc/guzeid](https://www.yuque.com/apifm/doc/guzeid)