Update MQTT on esp client
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user