Skip to content

Instantly share code, notes, and snippets.

# 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
#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
void setup()
{
Serial.begin(115200);
Serial2.begin(115200, SERIAL_8N1, 16, 17);
}
char charAck[100];
// int index;
char message[500];
char inChar;
String stringValue;
#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);
@manvisdr
manvisdr / bruteforce_serial.py
Last active July 30, 2022 15:30
try serial combination to get response from meter
import serial
import time
from binascii import hexlify
import signal
import sys
terminate = False
def signal_handling(signum, frame):