|
1485 | 1485 | */ |
1486 | 1486 | //#define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in" |
1487 | 1487 |
|
| 1488 | +/** |
| 1489 | + * @def MY_MQTT_CA_CERT |
| 1490 | + * @brief Set a specific CA certificate needed to validate MQTT server against. Use the certificate as a trust anchor, accepting remote certificates signed by it. |
| 1491 | + * |
| 1492 | + * This define is mandatory when you need connect MQTT over SSL/TLS. |
| 1493 | + * Example: @code |
| 1494 | + * |
| 1495 | + * const char mqtt_ca_cert[] PROGMEM = R"EOF( |
| 1496 | + * ----- BEGIN THE CERTIFICATE ----- |
| 1497 | + * XXX ... XXX |
| 1498 | + * ----- FINISH CERTIFICATE ----- |
| 1499 | + * )EOF"; |
| 1500 | + * |
| 1501 | + * #define MY_MQTT_CA_CERT mqtt_ca_cert |
| 1502 | + * |
| 1503 | + * @endcode |
| 1504 | + */ |
| 1505 | +//#define MY_MQTT_CA_CERT |
| 1506 | + |
| 1507 | +/** |
| 1508 | + * @def MY_MQTT_CLIENT_CERT |
| 1509 | + * @brief Set a client certificate to send to a MQTT server that requests one over TLS connection. |
| 1510 | + * |
| 1511 | + * This define is mandatory when you need connect MQTT over SSL/TLS. |
| 1512 | + * Example: @code |
| 1513 | + * |
| 1514 | + * const char mqtt_client_cert[] PROGMEM = R"EOF( |
| 1515 | + * ----- BEGIN THE CERTIFICATE ----- |
| 1516 | + * XXX ... XXX |
| 1517 | + * ----- FINISH CERTIFICATE ----- |
| 1518 | + * )EOF"; |
| 1519 | + * |
| 1520 | + * #define MY_MQTT_CLIENT_CERT mqtt_client_cert |
| 1521 | + * |
| 1522 | + * @endcode |
| 1523 | + */ |
| 1524 | +//#define MY_MQTT_CLIENT_CERT |
| 1525 | + |
| 1526 | +/** |
| 1527 | + * @def MY_MQTT_CLIENT_KEY |
| 1528 | + * @brief Set a client private key to send to a MQTT server that requests one over TLS connection. |
| 1529 | + * |
| 1530 | + * This define is mandatory when you need connect MQTT over SSL/TLS. |
| 1531 | + * Example: @code |
| 1532 | + * |
| 1533 | + * const char mqtt_client_key[] PROGMEM = R"EOF( |
| 1534 | + * ----- START THE RSA PRIVATE KEY ----- |
| 1535 | + * XXX ... XXX |
| 1536 | + * ----- FINISH THE RSA PRIVATE KEY ----- |
| 1537 | + * )EOF"; |
| 1538 | + * |
| 1539 | + * #define MY_MQTT_CLIENT_KEY mqtt_client_key |
| 1540 | + * |
| 1541 | + * @endcode |
| 1542 | + */ |
| 1543 | +//#define MY_MQTT_CLIENT_KEY |
| 1544 | + |
1488 | 1545 | /** |
1489 | 1546 | * @def MY_IP_ADDRESS |
1490 | 1547 | * @brief Static ip address of gateway. If not defined, DHCP will be used. |
|
2262 | 2319 | #define MY_MQTT_CLIENT_ID |
2263 | 2320 | #define MY_MQTT_PUBLISH_TOPIC_PREFIX |
2264 | 2321 | #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX |
| 2322 | +#define MY_MQTT_CA_CERT |
| 2323 | +#define MY_MQTT_CLIENT_CERT |
| 2324 | +#define MY_MQTT_CLIENT_KEY |
2265 | 2325 | #define MY_SIGNAL_REPORT_ENABLED |
2266 | 2326 | // general |
2267 | 2327 | #define MY_WITH_LEDS_BLINKING_INVERSE |
|
0 commit comments