hrbrmstr / mqtt

:telephone_receiver: Interoperate with 'MQTT' Message Brokers with R
21 stars 7 forks source link

Argument "qos_count" is missing, with no default #7

Open vanhry opened 2 years ago

vanhry commented 2 years ago

Hello! I've used your library before and it works great, now I am using another broker, and I'm receiving this error Error in .svr$loop(timeout, max_packets) : Evaluation error: argument "qos_count" is missing, with no default.

My code

mqtt_broker(host = .host_whisper, port = .port_whisper,client_id = "u1231") %>%
  mqtt_username_pw(username = .username,
                   password = .pass) %>% 
  mqtt::mqtt_subscribe(topic=.topic,
                       callback = sensor) %>% 
  mqtt_run() -> res

When I run in console everything works fine: mosquitto_sub -h myhost -p myport -u username -P password -t /topic