|
发表于 2015-7-9 19:03:29
|
显示全部楼层
要改哪些地方??? 我按照教程 老是不行local moduleName = ...
local M = {}
_G[moduleName] = M
local socket =nil
local server ="tcp.lewei50.com"--"192.168.1.129"--
local port = 9960
local bConnected = false
local gateWay ="01" --改过
local userKey ="fd3fceaa67c64134a064b5e98acbf615" ---改过
local uSwitchNode =nil
local strOnline = ""
require("LeweiTcpClient")
LeweiTcpClient.init("01","http://tcp.lewei50.com:9965/?method=send&gatewayNo=01") --改过
function test(P1)
print("test function!"..P1)
end
LeweiTcpClient.addUserSwitch(test,"01",1) --改过
|
|