martin-ger / esp_mqtt

MQTT Broker/Bridge on the ESP8266
MIT License
297 stars 70 forks source link

Request: "MQTT client user" too short for my cloud broker #48 #49

Open abaubi opened 5 years ago

abaubi commented 5 years ago

Hi martin

I tested the new version, as you can see, mqtt_user and mqtt_password are still truncated. MQTT client is still disconnected.

I stay tunned for next version.

Regards

CMD>show Version V2.0.8 (build: Wed Jan 2 07:52:51 2019) STA: SSID:XX-XXXX_XXXXXX PW:XXXXXXXXXX AP: SSID:MyAP PW:none [open] [disabled] IP:192.168.4.1/24 Network console access on port 7777 (mode 3) MQTT broker max. subscription: 30 MQTT broker max. retained messages: 30 MQTT client enabled MQTT client host: XXXXXXXXXXXXX MQTT client port: 1883 MQTT client user: XXX-ur1EjikpRuXXxNvd1Vua1r11aYh ->(Still truncated) MQTT client password: XXX8545XXX204ea7bXXXfe42ebXXXf6e ->(Still truncated) MQTT client id: ESPBroker_07b533 MQTT SSL: off NTP server: 1.pool.ntp.org (interval: 300 s, tz: 0) Clock speed: 80 Serial bitrate: 115200

_Originally posted by @abaubi in https://github.com/martin-ger/esp_mqtt/issues/48#issuecomment-451208322_

pablopescador commented 5 years ago

Hi Martin, grüezi aus München, Wie kann ich die ESP8266 (mit esp_mqtt) mit ADAFRUIT.IO binden. Ich habe verschiedene form für die Verbindung aber habe ich bis jetzt keine erfolgt. Vielen dank im Voraus, SG, Pablo. p.s.: meine Key hat 32 Zeichen :( (ich habe schon beim config_flash.h probiert so:

ifdef MQTT_CLIENT

uint8_t     mqtt_host**[64]**;    // IP or hostname of the MQTT broker, "none" if empty
uint16_t  mqtt_port;  // Port of the MQTT broker
uint8_t   mqtt_ssl;   // Use SSL (default: no)

uint8_t     mqtt_user**[64]**;    // Username for broker login, "none" if empty
uint8_t     mqtt_password**[64]**; // Password for broker login
uint8_t mqtt_id[48];    // MQTT clientId

aber leider dann der chip hat einen komische Verhalten gehabt.

Goltergaul commented 1 year ago

Hi, I have the same problem, but with the hostname of the external mqtt server. i got one from hivemq, which is pretty long. unfortunately it gets truncated. Is there any way around this?