ThingPlug Test

Dependents:   WizFi310_ThingPlug_Test WizFi310_ThingPlug_Test_P

Fork of WizFi310Interface by WIZnet

Revision:
8:08588dd2a66f
Parent:
7:b7019399eb1e
--- a/WizFi310/WizFi310_at.cpp	Fri Aug 25 00:55:43 2017 +0000
+++ b/WizFi310/WizFi310_at.cpp	Mon Aug 28 05:19:48 2017 +0000
@@ -374,8 +374,8 @@
     int resp;
 
     sprintf(cmd,"AT+SKTPDEVICE=%s,%s", openType, devId);
-    resp = sendCommand(cmd);        
-    
+    resp = sendCommand(cmd);
+        
     return resp;
 }
 
@@ -399,6 +399,17 @@
     return resp;
 }
 
+int WizFi310::cmdSKTPRESULT ( const char *commandName, int executeStatus, int executeResult )
+{
+    char cmd[CFG_CMD_SIZE];
+    int resp;
+
+    sprintf(cmd,"AT+SKTPRESULT=%s,%d,%d", commandName, executeStatus, executeResult);
+    resp = sendCommand(cmd);
+            
+    return resp;
+}
+
 int WizFi310::cmdSKTPSEND ( const char *containerName, const char *sendData )
 {
     char cmd[CFG_CMD_SIZE];
@@ -407,12 +418,4 @@
     sprintf(cmd,"AT+SKTPSEND=%s,%s", containerName, sendData);
     resp = sendCommand(cmd);
     return resp;
-}
-
-int WizFi310::cmdSKTPRESULT (  )
-{
-    int resp;
-
-    resp = sendCommand("AT+SKTPRESULT=?", RES_SMGMT);
-    return resp;
 }
\ No newline at end of file