Fixed write network settings command
This commit is contained in:
@@ -425,30 +425,30 @@ void modCommandsProcessPacket(unsigned char *data, unsigned int len) {
|
|||||||
ind = 0;
|
ind = 0;
|
||||||
modCommandsSendBuffer[ind++] = packet_id;
|
modCommandsSendBuffer[ind++] = packet_id;
|
||||||
|
|
||||||
i=250;
|
i=0;
|
||||||
while (i>0){
|
while (i<250){
|
||||||
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->Domain_URL[i],&ind);
|
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->Domain_URL[i],&ind);
|
||||||
i--;
|
i++;
|
||||||
}
|
}
|
||||||
i=250;
|
i=0;
|
||||||
while (i>0){
|
while (i<250){
|
||||||
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->Domain_URL_Event[i],&ind);
|
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->Domain_URL_Event[i],&ind);
|
||||||
i--;
|
i++;
|
||||||
}
|
}
|
||||||
i=50;
|
i=0;
|
||||||
while (i>0){
|
while (i<50){
|
||||||
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_APN[i],&ind);
|
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_APN[i],&ind);
|
||||||
i--;
|
i++;
|
||||||
}
|
}
|
||||||
i=50;
|
i=0;
|
||||||
while (i>0){
|
while (i<50){
|
||||||
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_USER[i],&ind);
|
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_USER[i],&ind);
|
||||||
i--;
|
i++;
|
||||||
}
|
}
|
||||||
i=50;
|
i=0;
|
||||||
while (i>0){
|
while (i<50){
|
||||||
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_PWD[i],&ind);
|
libBufferAppend_uint8(modCommandsSendBuffer,modCommandsToBeSendConfig->GSM_PWD[i],&ind);
|
||||||
i--;
|
i++;
|
||||||
}
|
}
|
||||||
modCommandsSendPacket(modCommandsSendBuffer, ind);
|
modCommandsSendPacket(modCommandsSendBuffer, ind);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user