@@ -16,7 +16,8 @@ inline int32_t lwmqtt_arduino_timer_get(void *ref) {
1616 return (int32_t )t->end - (int32_t )millis ();
1717}
1818
19- inline lwmqtt_err_t lwmqtt_arduino_network_read (void *ref, uint8_t *buffer, size_t len, size_t *read, uint32_t timeout) {
19+ inline lwmqtt_err_t lwmqtt_arduino_network_read (void *ref, uint8_t *buffer, size_t len, size_t *read,
20+ uint32_t timeout) {
2021 // cast network reference
2122 auto n = (lwmqtt_arduino_network_t *)ref;
2223
@@ -32,7 +33,8 @@ inline lwmqtt_err_t lwmqtt_arduino_network_read(void *ref, uint8_t *buffer, size
3233 return LWMQTT_SUCCESS;
3334}
3435
35- inline lwmqtt_err_t lwmqtt_arduino_network_write (void *ref, uint8_t *buffer, size_t len, size_t *sent, uint32_t /* timeout*/ ) {
36+ inline lwmqtt_err_t lwmqtt_arduino_network_write (void *ref, uint8_t *buffer, size_t len, size_t *sent,
37+ uint32_t /* timeout*/ ) {
3638 // cast network reference
3739 auto n = (lwmqtt_arduino_network_t *)ref;
3840
@@ -242,7 +244,7 @@ bool MQTTClient::connect(const char clientId[], const char username[], const cha
242244 this ->network .client = this ->netClient ;
243245
244246 // connect to host
245- if (!skip) {
247+ if (!skip) {
246248 int ret = this ->netClient ->connect (this ->hostname , (uint16_t )this ->port );
247249 if (ret <= 0 ) {
248250 return false ;
0 commit comments