Cov txheej txheem:
Video: ESP8266 GMail Sender: 3 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Nyob zoo thiab zoo siab txais tos rau kuv Thawj Cov Lus Qhia.
Kuv yuav qhia koj li cas xa email los ntawm ib qho ESP8266 wifi module siv Gmail server.
Cov lus qhia no tso siab rau Arduino core rau ESP8266 WiFi nti, uas ua rau tus kheej muaj microcontroller los ntawm nws (tsis xav tau AT cov lus txib thiab tus tswv cuab).
Koj tuaj yeem txuas cov ntsuas thiab tau txais kev ceeb toom los ntawm email txog kev hloov pauv.
Hloov tshiab 2018:
Nov yog cov cai tshiab sau ua arduino lib. Nws txhawb ntau tus neeg tau txais. Tsis tas li tsis tas yuav nkag tus lej nkag thiab tus lej nkag mus rau base64 tam sim no nws siv ESP core base64 lib. github
2019 Hloov tshiab:
- Txoj cai no tsis ua haujlwm nrog ESP8266 core rau Arduino version 2.5.0!
- Kev daws teeb meem ib ntus siv cov tub ntxhais version 2.4.2
Ua ntej peb pib
Yuav tsum tau kho vajtse:
- Ib qho ESP8266 (Kuv siv ESP8266-07 ebay txuas).
- Hauv kuv rooj plaub USB UART Board (Kuv siv FT232RL FTDI Serials Adapter Module ebay). Tsis xav tau yog tias koj lub rooj tsav xwm muaj chaw nres nkoj usb.
- Qee cov jumper cables.
- WIFI router tau kawg.
Cov npe yuav tsis tiav.
Yuav tsum tau software:
- Arduino Software
- Arduino core rau ESP8266 WiFi nti
- Sketch nrog txoj haujlwm thiab ntsuas tus lej (ESP8266_Gmail_Sender.zip).
Kauj ruam 1: Teeb Gmail Account
Peb yuav siv SMTP los xa lus.
Siv SMTP Kev Pov Thawj Peb muab tsuas yog email thiab password, los ntawm lub neej ntawd Google siv ntau txoj hauv kev txheeb xyuas qhov tseeb yog li peb yuav tsum hloov chaw.
Mus rau koj li Google chaw teeb tsa thiab pab kom "Tso cai rau kev nyab xeeb tsawg app" nyob hauv qab ntawm nplooj ntawv.
Qhov no txhais tau tias cov apps tsuas xav tau koj li email thiab password thaum nkag mus rau koj tus lej gmail.
Yog tias koj txhawj xeeb txog kev nyab xeeb, tsuas yog siv tus lej sib txawv
Kauj ruam 2: Kho Sketch
Kuv tau sau me ntsis kos uas xa ib qho lus sim los tshuaj xyuas yog tias txhua yam ua haujlwm raws li tsim nyog
Thaum txhua lub software rub tawm thiab teeb tsa:
- Unzip ESP8266_Gmail_Sender.zip
- Nrhiav thiab qhib ESP8266_Gmail_Sender.ino
- Teem koj lub npe nkag rau wifi (SSID) thiab tus password. Yuav tsum zoo li no:
const char* ssid = "MyWiFi";
const char* lo lus zais = "12345678";
Hauv teeb () muaj nuj nqi nrhiav
yog (gsender-> Kawm (ntsiab lus)-> Xa ("[email protected]", "Teeb teeb"))
Thawj qhov ntsuas ntawm Xa () muaj nuj nqi yog tus tau txais email, kab lus thib ob.
Hloov tus neeg txais los ntawm [email protected] rau koj tus email uas yuav tau txais lus.
Kuv tau txais ntau email txhua hnub vim tias qee tus ntawm koj tsis ua tib zoo, THOV ZOO TSHAJ PLAWS NTAWV THOV NCO NTSOOV POM ZOO TSHAJ PLAWS EMAIL
Lub luag haujlwm tseem ceeb yog xaiv tau! Cov ntsiab lus teev ib zaug thiab khaws cia kom txog thaum koj hloov nws.
Koj tuaj yeem xa email yam tsis muaj kev kawm lossis yog nws tau teeb tsa
gsender-> Xa (rau, lus);
Tam sim no qhib Gsender.h tab
Peb xav tau Base64 tus lej email chaw nyob thiab tus lej zais ntawm tus lej Gmail uas yuav siv los xa email
Koj tuaj yeem siv base64encode.org rau encoding, qhov tshwm sim yuav tsum yog qee yam xws li:
const char* EMAILBASE64_LOGIN = "Y29zbWkxMTExMUBnbWFpbC5jb20 =";
const char* EMAILBASE64_PASSWORD = "TGFzZGFzZDEyMzI =";
Tam sim no teeb FROM teb
const char* FROM = "[email protected]";
Qhov ntawd yog txhua yam rau ntu no.
Kauj ruam 3: Code Uploading and Testing
Txuag hloov. Tsis txhob hnov qab teeb tsa koj lub rooj tsavxwm hauv Tool menu.
Rub cov duab kos rau koj lub ESP8266 pawg thawj coj.
Qhib Serial saib, pawg thawj coj saib yuav sau cov lus nkag.
Qhov ntawd yog txhua yam Kuv vam tias koj yuav tau txais "Cov lus xa." Ua tsaug …
Pom zoo:
YADPF (YET Lwm Tus Duab Duab Duab): 7 Kauj Ruam (nrog Duab)
YADPF (YET Lwm Tus Duab Duab Duab): Kuv paub qhov no tsis yog khoom tshiab, Kuv paub, Kuv tau pom qee qhov ntawm cov haujlwm no ntawm no, tab sis kuv ib txwm xav tsim kuv tus kheej cov duab thav duab. Txhua daim duab thav duab kuv tau pom yog qhov zoo, tab sis kuv tab tom nrhiav lwm yam, Kuv tab tom nrhiav qhov zoo nkauj tiag tiag
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv