Cov txheej txheem:
- Kauj Ruam 1: Pib Tshaj Tawm
- Kauj Ruam 2: Html Code rau Front End I.e. ID nkag mus nplooj ntawv
- Kauj Ruam 3: Siv WebServer.arg () thiab WebServer.on () Txoj hauv kev
- Kauj Ruam 4: Yog Tus Neeg Siv Cov Ntawv Tsis raug Credentials
- Kauj Ruam 5: Yuav Ntxiv Duab Li Cas Rau Koj Lub Vev Xaib
- Kauj Ruam 6: Yam Khoom Uas Peb Xav Tau
- Kauj ruam 7: Kev sib txuas
- Kauj Ruam 8: Tam sim no Kuaj thiab Txaus Siab
- Kauj Ruam 9: Code Nyob Ntawm No
Video: Tsev Automation Siv Captive Portal: 9 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Ntawm no, peb yuav tsim txoj haujlwm zoo heev ntawm Captive Portal raws li kev siv tshuab hauv tsev siv nodeMCU los ntawm kos.. Yog li, cia pib..
Kauj Ruam 1: Pib Tshaj Tawm
Tshaj tawm IO pins ntawm nodeMCU los ua Action, Header Files thiab code rau tsim DNS server..shown in image..
Kauj Ruam 2: Html Code rau Front End I.e. ID nkag mus nplooj ntawv
Raws li pom hauv daim duab, tshaj tawm cov cai html tsis pub dhau ib txoj hlua sib txawv uas peb xa mus rau tus neeg siv kawg rau kev lees paub ntawm Access Code.
*Txhawm rau ntes cov ntaub ntawv nkag los ntawm tus neeg siv ntawm no peb siv lub thav duab thauj tog rau nkoj thiab href tag
*Feem ntau Cov Thauj Tog Rau Nkoj tau siv los ntxiv lwm nplooj ntawv nplooj ntawv hauv nplooj ntawv web thiab href tag qhia lub hom phiaj ntawm qhov txuas.
*Tab sis, ntawm no peb tau txais cov ntaub ntawv nkag los ntawm tus neeg siv hauv Access Code teb los ntawm Thauj Tog Rau Nkoj Pane thiab href tag …
li cas, Kuv yuav hais txog ob txoj hauv kev ntawm kev nkag mus los ntawm lub vev xaib cuam tshuam rau peb txhais tau tias cov programmer xaus..
Kauj Ruam 3: Siv WebServer.arg () thiab WebServer.on () Txoj hauv kev
Raws li, Kuv hais hauv cov kauj ruam dhau los kuv yuav qhia koj ob txoj hauv kev sib txawv..
1) Los ntawm Kev Siv webServer.arg () txoj hauv kev:
Ntawm no, peb hais qhia autofocus tus cwj pwm nrog rau lub hauv paus raws li qhia hauv daim duab, dab tsi autofocus ua yog tias nws yog tus cwj pwm boolean thaum nws muaj tseeb txhais tau tias tam sim no nws paub tseeb tias cov ntsiab lus nkag tau tsom mus rau thaum nplooj ntawv thauj khoom.
thiab tom qab ntawd, peb hu cov args () txheej txheem ntawm cov khoom server. Txoj hauv kev no yuav xa rov qab tus naj npawb ntawm cov lus nug uas tau dhau ntawm HTTP thiab siv cov nqe lus muaj cai los ua qhov ua raws.
2) Los ntawm Kev Siv thiab href tus cwj pwm:
Ntawm no, peb hais qhia peb cov kev tswj hwm (zoo li cov nyees khawm) nyob rau hauv thiab muab txoj hlua, char, txuas uas koj xav kom siv tau siv cov nqe lus muaj cai thiab tom qab ntawd peb hu rau webServer.on () kom tau txais cov ntaub ntawv rau kev siv tau.
Raws li qhia..
Kauj Ruam 4: Yog Tus Neeg Siv Cov Ntawv Tsis raug Credentials
Kuv tau ua dab tsi, tsuas yog hloov pauv tus ID nkag mus nplooj ntawv chaws thiab ntxiv lub ntsiab lus tshiab qhia tias tus neeg siv tau nkag mus rau daim ntawv pov thawj tsis raug..
Ua ntej lees paub qhov muaj peev xwm yog tias nws tsis raug ncaj qha rau tus neeg siv mus rau nplooj ntawv kho tshiab nkag mus uas qhia cov lus yuam kev.
Raws li qhia..
Kauj Ruam 5: Yuav Ntxiv Duab Li Cas Rau Koj Lub Vev Xaib
Nws yog qhov yooj yim heev, vim tias ntawm no peb tsis khaws peb cov duab rau hauv lub cev cia kom peb muab txoj hauv kev mus nqa cov duab ntawd uas peb ib txwm ua thaum muaj nplooj ntawv html.
yog li peb ua dab tsi yog hloov pauv peb cov duab rau base64 thiab muab nws tso rau hauv peb nplooj ntawv nplooj ntawv Raws li qhia..
Kauj Ruam 6: Yam Khoom Uas Peb Xav Tau
1)- nodeMCU
2)- Arduino IDE rau nyem rau ntawm nodeMCU
3) -jumper xov hlau (F-2-F)
4) -Relay Module
5) -A WiFi qhib lub xov tooj smartphone lossis laptop los sim
Kauj ruam 7: Kev sib txuas
Ntxiv relay module tshaj tawm IO pins hauv cov cai.
Txuas Relay rau cov khoom siv hluav taws xob koj xav tswj raws li qhia hauv duab..
Kauj Ruam 8: Tam sim no Kuaj thiab Txaus Siab
Kauj Ruam 9: Code Nyob Ntawm No
Thov sau koj cov lus muaj nqis..
Pom zoo:
Siv Kev Cia Siab Lub Hauv Paus txuas ntxiv txhawm rau Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Txoj Cai Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: 11 Kauj Ruam
Siv Kev Cia Siab Lub Hauv Paus Txuas Ntxiv kom Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: Lub hom phiaj ntawm cov lus qhia no yog los qhia seb yuav tshawb nrhiav koj tsev neeg tsob ntoo li cas hauv Tsev Neeg Nrhiav rau cov poj koob yawm txwv nrog kev ua haujlwm hauv lub tuam tsev tsis tiav siv Kev Cia Siab lub hauv siab txuas ntxiv. Siv Kev Cia Siab Lub Hauv Paus tuaj yeem ua rau koj qhov kev tshawb nrhiav tsis tiav
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module - Lub Tswv Yim Hauv Tsev Automation: 15 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module | Lub Tswv Yim Ua Lag Luam Hauv Tsev: Hauv qhov haujlwm ua haujlwm hauv tsev no, peb yuav tsim lub tsev ntse hloov chaw uas tuaj yeem tswj tau 5 yam khoom siv hauv tsev. Qhov kev hloov pauv no tuaj yeem tswj tau los ntawm Txawb lossis smartphone, IR chaw taws teeb lossis TV nyob deb, Kev hloov pauv ntawm tes. Qhov kev tshaj tawm ntse no tseem tuaj yeem paub txog r
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
Tswj Cov Khoom Siv Hauv Tsev Hla LoRa - LoRa hauv Tsev Automation - LoRa Chaw Taws Teeb: 8 Kauj Ruam
Tswj Cov Khoom Siv Hauv Tsev Hla LoRa | LoRa hauv Tsev Automation | LoRa Kev Tswj Chaw Taws Teeb: Tswj thiab siv koj lub cuab yeej siv hluav taws xob los ntawm qhov deb (Kilometers) yam tsis muaj internet. Qhov no ua tau los ntawm LoRa! Hav, ua li cas, cov menyuam? Akarsh ntawm no los ntawm CETechQhov PCB no tseem muaj cov zaub OLED thiab 3 qhov txuas uas
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: 6 Cov Kauj Ruam
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: Hav !! Tom qab so ntev kuv nyob ntawm no vim peb txhua tus yuav tsum tau ua ib yam dab tsi tho txawv (txoj haujlwm) kom khwv tau. yooj yim tab sis ua tau zoo tshaj plaws