chore: mqtt impl, fix more wiznet bugs

This commit is contained in:
2024-11-10 02:47:54 +06:00
parent 80cf21f143
commit 3ac9c62241
19 changed files with 1093 additions and 253 deletions

View File

@@ -19,8 +19,6 @@ typedef struct {
extern volatile int ip_assigned;
void handle_ip_assigned(void);
// Initializes the W5500 chip
void configure_network(void);
@@ -29,17 +27,6 @@ void dhcp_init(void);
void dhcp_process(void);
// resolves a domain name
void resolve_domain_name(const char* domain_name);
// init and connect the MQTT client
int setup_mqtt_client(Network* network, ch32_mqtt_options_t* opts,
MQTTClient* client);
int subscribe_to_topic(MQTTClient* client, const char* topic, enum QoS qos,
messageHandler message_callback);
// publish a message to a topic
void publish_message(MQTTClient* client, const char* payload,
const char* topic);
// void resolve_domain_name(const char* domain_name);
#endif // W5500_H