Browse Source

debug messages correctly print POST data

etisab 10 năm trước cách đây
mục cha
commit
442ef6e973
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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
 )