2023-09-19 08:34:06 +00:00
|
|
|
///
|
|
|
|
//
|
|
|
|
// shared.h contains some shared settings and functionality
|
|
|
|
//
|
|
|
|
///
|
|
|
|
|
2023-09-15 06:21:00 +00:00
|
|
|
#ifndef _shared_h
|
|
|
|
#define _shared_h
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <esp_wifi.h>
|
|
|
|
#include "esp_system.h"
|
|
|
|
|
2023-09-19 08:34:06 +00:00
|
|
|
// wifi configuration
|
2023-09-15 06:21:00 +00:00
|
|
|
#define SSID "ESP8266"
|
|
|
|
#define PASSW "XR-Lab2023"
|
|
|
|
|
|
|
|
static const char* APP_TAG="CINEKID_LEDS";
|
|
|
|
|
2023-09-19 08:34:06 +00:00
|
|
|
// print a line with the app tag as a prefix to easilly separate our own logging from system logging
|
2023-09-15 06:21:00 +00:00
|
|
|
#define LOGLN(...) do {\
|
|
|
|
printf("%s | ", APP_TAG);\
|
|
|
|
printf(__VA_ARGS__);\
|
|
|
|
printf("\n");\
|
|
|
|
} while(0)
|
|
|
|
|
|
|
|
#endif // !_shared_h
|