copy code from my personal git repo
This commit is contained in:
parent
24d6c84170
commit
f9f509c619
28 changed files with 787 additions and 1 deletions
44
secrets.h.example
Normal file
44
secrets.h.example
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
const char* hostname = "bibotron";
|
||||
const char* ota_user = "adminuser";
|
||||
const char* ota_password = "b1b0tr0n";
|
||||
const char* button_user = "poweruser";
|
||||
const char* button_password = "AllComputersAreBroken";
|
||||
const char* leds_user = "user";
|
||||
const char* leds_password = "yolo";
|
||||
|
||||
// MAC address and IP address
|
||||
// You may want to set this to different values if you have several boards connected to your LAN using similar code.
|
||||
// In the code we are only using the first MAC of the array. But the array is there if you want to change the code to randomly pick one each time the system boots.
|
||||
#define NUMBER_OF_MAC 20
|
||||
#define SELECTED_MAC 0
|
||||
byte mac[][NUMBER_OF_MAC] =
|
||||
{
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x00 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x01 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x02 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x03 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x04 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x05 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x06 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x07 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x08 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x09 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x0A },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x0B },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x0C },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x0D },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x0E },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x0F },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x10 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x11 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x12 },
|
||||
{ 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0x13 },
|
||||
};
|
||||
// Fallback static IPv4 configuration in case DHCP is not working
|
||||
IPAddress myIP(10, 13, 12, 40);
|
||||
IPAddress myGW(10, 13, 12, 254);
|
||||
IPAddress mySN(255, 255, 255, 0);
|
||||
IPAddress myDNS(10, 13, 12, 254);
|
||||
|
||||
// Server to ping to check the network connectivity
|
||||
IPAddress myProxy(10, 13, 12, 254);
|
||||
Loading…
Add table
Add a link
Reference in a new issue