I have been using the node-red-contrib-google-iot-core module to publish to Google's IOT Core MQTT broker and it has been working well.
However I want to subscribe to the broker to receive commands on my device from the cloud also. Google have recently added a new 'command' topic which is different to the config topic which the node red module is set up for.
The topic that the node subscribes to is hardcoded into the modules
google-iot-core.js file. I have attempted to just edit the string to subscribe to the new topic i.e.
but when I saved it and restarted NR it threw up errors
6 Mar 17:09:38 - [info] Waiting for missing types to be registered: 6 Mar 17:09:38 - [info] - google-iot-core-broker 6 Mar 17:09:38 - [info] - google-iot-core out 6 Mar 17:09:38 - [info] - google-iot-core in
Am I going about this the correct way? It seems like it should be a pretty quick fix but I'm not experienced with Node.js so I'm not sure if I'm missing a step or if there's a better way to go about it all, for instance cloning in the git repo and making the change and then linking the module locally instead of installing with NPM?
Any advice from experienced users would be greatly appreciated.