@@ -271,7 +271,7 @@ bool LoRaWanClass::transferPacket(char *buffer, unsigned char timeout)
271
271
while (SerialLoRa.available ())SerialLoRa.read ();
272
272
273
273
sendCommand (" AT+MSG=\" " );
274
- for (unsigned char i = 0 ; i < length; i ++)SerialLoRa.write (buffer[i]);
274
+ for (int i = 0 ; i < length; i ++)SerialLoRa.write (buffer[i]);
275
275
sendCommand (" \"\r\n " );
276
276
277
277
while (true ) {
@@ -303,7 +303,7 @@ bool LoRaWanClass::transferPacket(unsigned char *buffer, unsigned char length, u
303
303
while (SerialLoRa.available ())SerialLoRa.read ();
304
304
305
305
sendCommand (" AT+MSGHEX=\" " );
306
- for (unsigned char i = 0 ; i < length; i ++)
306
+ for (int i = 0 ; i < length; i ++)
307
307
{
308
308
sprintf (temp," %02x" , buffer[i]);
309
309
SerialLoRa.write (temp);
@@ -331,7 +331,7 @@ bool LoRaWanClass::transferPacketWithConfirmed(char *buffer, unsigned char timeo
331
331
SerialLoRa.read ();
332
332
333
333
sendCommand (" AT+CMSG=\" " );
334
- for (unsigned char i = 0 ; i < length; i ++)SerialLoRa.write (buffer[i]);
334
+ for (int i = 0 ; i < length; i ++)SerialLoRa.write (buffer[i]);
335
335
sendCommand (" \"\r\n " );
336
336
337
337
#ifdef deadcode
@@ -390,7 +390,7 @@ bool LoRaWanClass::transferPacketWithConfirmed(unsigned char *buffer, unsigned c
390
390
while (SerialLoRa.available ())SerialLoRa.read ();
391
391
392
392
sendCommand (" AT+CMSGHEX=\" " );
393
- for (unsigned char i = 0 ; i < length; i ++)
393
+ for (int i = 0 ; i < length; i ++)
394
394
{
395
395
sprintf (temp," %02x" , buffer[i]);
396
396
SerialLoRa.write (temp);
@@ -513,7 +513,7 @@ bool LoRaWanClass::transferProprietaryPacket(char *buffer, unsigned char timeout
513
513
while (SerialLoRa.available ())SerialLoRa.read ();
514
514
515
515
sendCommand (" AT+PMSG=\" " );
516
- for (unsigned char i = 0 ; i < length; i ++)SerialLoRa.write (buffer[i]);
516
+ for (int i = 0 ; i < length; i ++)SerialLoRa.write (buffer[i]);
517
517
sendCommand (" \"\r\n " );
518
518
519
519
memset (_buffer, 0 , BEFFER_LENGTH_MAX);
@@ -532,7 +532,7 @@ bool LoRaWanClass::transferProprietaryPacket(unsigned char *buffer, unsigned cha
532
532
while (SerialLoRa.available ())SerialLoRa.read ();
533
533
534
534
sendCommand (" AT+PMSGHEX=\" " );
535
- for (unsigned char i = 0 ; i < length; i ++)
535
+ for (int i = 0 ; i < length; i ++)
536
536
{
537
537
sprintf (temp," %02x" , buffer[i]);
538
538
SerialLoRa.write (temp);
@@ -816,7 +816,7 @@ void LoRaWanClass::transferPacketP2PMode(char *buffer)
816
816
unsigned char length = strlen (buffer);
817
817
818
818
sendCommand (" AT+TEST=TXLRSTR,\" " );
819
- for (unsigned char i = 0 ; i < length; i ++)SerialLoRa.write (buffer[i]);
819
+ for (int i = 0 ; i < length; i ++)SerialLoRa.write (buffer[i]);
820
820
sendCommand (" \"\r\n " );
821
821
}
822
822
@@ -825,7 +825,7 @@ void LoRaWanClass::transferPacketP2PMode(unsigned char *buffer, unsigned char le
825
825
char temp[2 ] = {0 };
826
826
827
827
sendCommand (" AT+TEST=TXLRPKT,\" " );
828
- for (unsigned char i = 0 ; i < length; i ++)
828
+ for (int i = 0 ; i < length; i ++)
829
829
{
830
830
sprintf (temp," %02x" , buffer[i]);
831
831
SerialLoRa.write (temp);
@@ -1042,4 +1042,4 @@ short LoRaWanClass::sendCommandAndWaitForResponse(char* command, char *response,
1042
1042
}
1043
1043
1044
1044
1045
- LoRaWanClass lora;
1045
+ LoRaWanClass lora;
0 commit comments