Permalink
Browse files

sta yun

  • Loading branch information...
1 parent 9d498e0 commit 3304eb3a3dc8b5abf7f935dc241ff312ced5f60a smartarduino committed Jun 5, 2015
Showing with 2 additions and 2 deletions.
  1. +1 −1 sta.lua
  2. +1 −1 yun.lua
View
@@ -8,7 +8,7 @@
print("Ready to Set up wifi mode")
wifi.setmode(wifi.STATION)
-local ssid = "MERCURY_1013"
+local ssid = "Doit"
local psw = "123456789"
print("Conneting to "..ssid)
wifi.sta.config(ssid,psw)--ssid and password
View
@@ -27,7 +27,7 @@ tmr.alarm(3, 5000, 1, function()
elseif flagClientTcpConnected==false then
print("Try connect Server");
conn=net.createConnection(net.TCP, false)
- conn:connect(7500,"198.199.94.16");--182.92.178.210
+ conn:connect(7500,"182.92.178.210");--182.92.178.210 --198.199.94.16
conn:on("connection",function(c)
print("TCPClient:conneted to server");
conn:send("cmd=subscribe&topic="..deviceID.."\r\n");

0 comments on commit 3304eb3

Please sign in to comment.