-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcredentials.h
More file actions
32 lines (23 loc) · 1.11 KB
/
Copy pathcredentials.h
File metadata and controls
32 lines (23 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CREDENTIALS_H
#define CREDENTIALS_H
#include <Arduino.h>
#include <PubSubClient.h>
// WiFi
static const char wifi_ssid[] = "your-SSID"; // enter your WiFi name here
static const char wifi_password[] = "your-password"; // enter your WiFi password here
// MQTT Broker
static const char mqtt_broker[] = "192.168.178.20"; // broker address
static const char mqtt_topic_t[] = "MatrixDisplay2/text"; // define topic for text
static const char mqtt_topic_i[] = "MatrixDisplay2/intensity"; // define topic for intensity
static const char mqtt_topic_s[] = "MatrixDisplay2/scrollwait"; // define topic for scrollwait
// TCP port of MQTT cloud broker without TLS
static const uint16_t mqtt_port = 1883;
// prefix part for the name (clientID) of the MQTT client
static const char mqtt_prefix[] = "mqtt_scrolling";
// max length of MQTT clientID
static const uint8_t mqtt_clen = 250;
// global data structure
extern PubSubClient mqttClient;
// exported function
extern void reconnect (bool);
#endif //CREDENTIALS_H