hardcoded pi address
This commit is contained in:
@@ -3,6 +3,6 @@
|
|||||||
|
|
||||||
#define WIFI_SSID "Novoyuuparosk_H3C"
|
#define WIFI_SSID "Novoyuuparosk_H3C"
|
||||||
#define WIFI_PASSWORD "northwich"
|
#define WIFI_PASSWORD "northwich"
|
||||||
#define WS_SERVER_URI "ws://192.168.1.100:8765"
|
#define WS_SERVER_URI "ws://192.168.2.1:8765"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ static const char *TAG = "alert";
|
|||||||
#define SAMPLE_RATE 24000
|
#define SAMPLE_RATE 24000
|
||||||
#define CHANNELS 2
|
#define CHANNELS 2
|
||||||
#define BITS 16
|
#define BITS 16
|
||||||
#define TONE_FREQ 1000
|
#define TONE_FREQ 762
|
||||||
#define TONE_DURATION_MS 200
|
#define TONE_DURATION_MS 200
|
||||||
|
|
||||||
/* Tone buffer: 200ms at 24kHz * 2ch * 2bytes = 19200 bytes */
|
/* Tone buffer: 200ms at 24kHz * 2ch * 2bytes = 19200 bytes */
|
||||||
@@ -41,7 +41,7 @@ static const int64_t s_cooldown_us[ALERT_TYPE_COUNT] = {
|
|||||||
static const int s_beep_count[ALERT_TYPE_COUNT] = {
|
static const int s_beep_count[ALERT_TYPE_COUNT] = {
|
||||||
0, /* SERVICE_DOWN: triple beep */ /* DISABLED FOR TESTING */
|
0, /* SERVICE_DOWN: triple beep */ /* DISABLED FOR TESTING */
|
||||||
2, /* HIGH_TEMP: double beep */
|
2, /* HIGH_TEMP: double beep */
|
||||||
1, /* WS_DISCONNECT: single beep */
|
0, /* WS_DISCONNECT: single beep */ /* DISABLED FOR TESTING */
|
||||||
1, /* CONNECT_OK: single short beep */
|
1, /* CONNECT_OK: single short beep */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user