Update MQTT on esp client

This commit is contained in:
2025-12-30 12:59:14 +01:00
parent 64ff87f587
commit 90fd1a4e6a
4 changed files with 18 additions and 46 deletions

View File

@@ -183,7 +183,10 @@ void mqtt_init(void)
esp_mqtt_client_config_t mqtt_cfg = {
.broker.address.uri = "mqtt://192.168.15.119:1883",
.credentials = {
.username = NULL,
.username = "device",
.authentication = {
.password = "hepl",
},
.client_id = NULL,
.set_null_client_id = true
},
@@ -291,7 +294,7 @@ char* read_gps() {
void send_position_task(void *pvParameters)
{
const char* gps_topic = "/board-mate/gps/notify";
const char* gps_topic = "/system/sensor/gps";
while (1) {
char* json;