5 – About the WiFi module After the network is used, use a small program binding device, binding mode

https://www.cnblogs.com/yangfengwu/p/11625189.html< /span>

well known

span>:Use WeChatAirkiss Only the device can be equipped with network,not able to get the device MACaddress information, but I’m here< /p>

https://www.cnblogs.com/yangfengwu/p/11624796.html This section is indeed after the network Binding the device’s MAC

In fact, there are three ways to bind WIFI in summary, post two QR code, let the mobile phone connect to the wireless of the WIFI module, and the following my own plan

Posting the QR code can actually be divided into Two types: QR code generated by WeChat direct connection or get a QR code by yourself (attach the MAC of the device) (mainly it will delay time, because each device needs to post a QR code)

Connect the mobile phone to the wireless of the WIFI module: then visit the browser (visit the WIFI embedded webpage) or APP visit (use TCP communication to obtain information ) (This way! It always feels a bit troublesome! Another point is that WeChat thinks that this is insecure. You can’t access web pages in WeChat!!! But it! Recently, WeChat added the UDP function, so there is no need to open the web page)

These two methods will be taught to you in my tutorial

Share a picture

In fact, this is a plan I came up with a long time ago, and it was designed for a friend’s project.

The project made by a friend is a WeChat official account and communicates via MQTT Control equipment (that is, put the webpage in the official account, when Airkiss deployed the network at the time, it was the embedded webpage…)

I have a problem now

1, friends are reluctant to use QR codes for life and death…

2, I wanted to connect the WIFI module, and use the WeChat webpage to visit the 8266 embedded webpage to achieve network configuration… The result WeChat Do not open this kind of link (think unsafe), during the test, QQ, browser can be…

I was also forced to be helpless…I can only find another way. Anyway, it is absolutely impossible to bind when the network is distributed… ..

Only when the module is available online , Send the information to the mobile phone

I’ll directly I’m talking about my plan

I use The MAC address of the router

After the device is equipped with the network< /span>

Use MQTT to send messages every once in a while, The subject of the release is the MAC address of the router, and the information carries the MAC address of the device

share picture

I have made a function in my small program, as long as it is connected to the router, it will get the router’s MAC address, and then subscribe to the MAC address

Share pictures

In this way, the applet obtains the MAC address information of the device and realizes the binding.

The reason why I choose to use the router’s MAC is to ensure uniqueness

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 449 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.