1
0

fucking fixes i hate cpp

This commit is contained in:
Jose
2025-04-09 13:14:11 +02:00
parent bd7d56b46e
commit 0c03c052b4
8 changed files with 28 additions and 14 deletions

View File

@@ -1,8 +1,20 @@
#include "main.hpp"
const uint32_t deviceId = getChipID();
uint32_t getChipID()
{
uint32_t chipId;
for (int i = 0; i < 17; i = i + 8) {
chipId |= ((ESP.getEfuseMac() >> (40 - i)) & 0xff) << i;
}
return chipId;
}
void setup() {
Serial.begin(9600);
// WiFi Connection
if(setup_wifi() != 0)
{
Serial.print("Error connecting to WiFI");