How to export only one function, except other functions and import it in other file.
function messsageReceived(message) {
//print message
}
function readData(){
// reads data.
}
module.exports = mqtt_messsageReceived();
I want to use mqtt_messsageReceived in other file.