Files
banban/ql-application/threadx/interface/custom_app/inc/talkingq_wss.h
T
chenjintao 3deb51d838 Adapt WSS to new boards and use MQTT domain for eSIM connectivity
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.
2026-09-16 17:27:21 +08:00

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