瀏覽代碼

debug messages correctly print POST data

etisab 10 年之前
父節點
當前提交
442ef6e973
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      BUILD/sendYo.lua

+ 3 - 3
BUILD/sendYo.lua

@@ -19,9 +19,9 @@ http.post(
 	'Content-length: ' ..contentLength.. '\r\n',
 	contentString,
 	function(code, data)
-		print("POST REQUEST CALLBACK")
-		print("code: ", code)
-		print("data: ", data)
+		debugMsg("POST REQUEST CALLBACK")
+		debugMsg("code: " .. code)
+		debugMsg("data: " .. data)
 		wifi.sleeptype(wifi.LIGHT_SLEEP)
 	end
 )