nest-mqtt
nest-mqtt copied to clipboard
A MQTT module for Nest.js.
```typescript constructor( @Inject(MqttService) private readonly mqttService: MqttService, ) {} @Subscribe('/iot/test/#') test(@Payload() payload) { console.log(payload) try { this.mqttService.publish("/test", {a: 1}, { qos: 0 }) } catch (err) { console.error(err) } }...
Hi there! In my project I am using more than one mqtt clients, each client is created by one specific module. It works fine when I'm using forRoot method. However,...
Update peer dependencies avoiding npm legacy installation for nestJS v.9.0.0
I can't install this package, because of unsupported @nestjs/common package version `npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected]...