This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # disable swap | |
| sudo dphys-swapfile swapoff | |
| sudo dphys-swapfile uninstall | |
| sudo update-rc.d dphys-swapfile remove | |
| # Disable Logging Services | |
| sudo systemctl disable bootlogs | |
| sudo systemctl disable console-setup | |
| # disable unwanted unused software | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <lorawan.h> | |
| //923 | |
| const char *devAddr = "260DBA81"; | |
| const char *nwkSKey = "682513AEFBE5298C8DBA9EFE0839BF8A"; | |
| const char *appSKey = "67C87263B28F4A7C3C85E60BBB3DF35A"; | |
| const unsigned long interval = 5000; // 10 s interval to send message | |
| unsigned long previousMillis = 0; // will store last time message sent | |
| unsigned int counter = 0; // message counter | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | void setup() | |
| { | |
| Serial.begin(115200); | |
| Serial2.begin(115200, SERIAL_8N1, 16, 17); | |
| } | |
| char charAck[100]; | |
| // int index; | |
| char message[500]; | |
| char inChar; | |
| String stringValue; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <Ethernet.h> | |
| #define csEthOne 4 | |
| byte macEthOne[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}; | |
| IPAddress ipEthOne(10, 10, 10, 10); // ethernet 1 | |
| EthernetServer serverOne(80); | |
| void setup() | |
| { | |
| Serial.begin(115200); | |
| Serial2.begin(9600, SERIAL_8N1, RXpin, TXpin); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import serial | |
| import time | |
| from binascii import hexlify | |
| import signal | |
| import sys | |
| terminate = False | |
| def signal_handling(signum, frame): |