Preserve main GNSS and volume behavior while porting verified TLS, receive fixes and full-handshake optimizations. Add MQTT connection diagnostics and route MQTT through banban.api.talkingq.com:1883. Include migration documentation and regression tools. Firmware builds and package checks passed; user confirmed new-board connectivity after switching the MQTT host to the domain.
21 lines
677 B
C
21 lines
677 B
C
#ifndef TALKINGQ_WSS_H
|
|
#define TALKINGQ_WSS_H
|
|
|
|
#include <stddef.h>
|
|
|
|
#define TALKINGQ_WSS_URL "wss://banban.api.talkingq.com:443/ws"
|
|
#define TALKINGQ_URL_CAPACITY 64
|
|
#define TALKINGQ_HOST_CAPACITY 64
|
|
#define TALKINGQ_PATH_CAPACITY 128
|
|
|
|
extern const char talkingq_root_ca[];
|
|
extern const size_t talkingq_root_ca_size;
|
|
|
|
/* Reject cleartext, malformed authorities, invalid ports and oversized URLs. */
|
|
int talkingq_parse_wss_url(const char *url, char *host, size_t host_size,
|
|
int *port, char *path, size_t path_size);
|
|
/* Only the former built-in endpoints migrate; custom WSS endpoints are kept. */
|
|
int talkingq_is_legacy_ws_url(const char *url);
|
|
|
|
#endif
|