J
J
jtag2018-05-31 11:20:34
Node.js
jtag, 2018-05-31 11:20:34

How to call a function from the same module from a module?

How can I access the getCmdReadConfig() method?

module.exports = (idses)=>{
    return {
        connConfig: (port, ip) => {
            //	.............................
        },
        getVersion: (idses) => {
            req = getCmdReadConfig(idses, 1, 0x01)
        },
        getCmdReadConfig: (idses, type, num, par=0x00) => {
            //.....................	
        }
    }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question