Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit f674f57

Browse files
committed
Update to Blynk.Cloud
1 parent 457eba0 commit f674f57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

blynk.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ local function split(str, delimiter)
2424
end
2525

2626
local Blynk = {
27-
heartbeat = 10,
27+
heartbeat = 50,
2828
buffin = 1024,
2929
callbacks = {},
3030
state = STATE_DISCONNECT,

examples/client.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ local function connectBlynk()
2929
sock:connect(host, 443)
3030
local opts = {
3131
mode = "client",
32-
protocol = "tlsv1"
32+
protocol = "tlsv1_2"
3333
}
3434
sock = assert(ssl.wrap(sock, opts))
35-
sock:dohandshake()
35+
assert(sock:dohandshake())
3636
else
3737
print("Connecting Blynk...")
3838
sock:connect(host, 80)

0 commit comments

Comments
 (0)