NodeMCU timeout when using while loop
问题 I have a Lua script that sends an email to myself via SMTP. Everything works fine when uploading to the NodeMCU and saying dofile("sendemail.lua") . -- sendmail.lua -- The email and password from the account you want to send emails from MY_EMAIL = "REDACTED" EMAIL_PASSWORD = "REDACTED" -- The SMTP server and port of your email provider. -- If you don't know it google [my email provider] SMTP settings SMTP_SERVER = "isp.smtp.server" SMTP_PORT = 25 -- The account you want to send email to mail