@Qbza, your code invokes something (establishing a connection?) that expects a callback function as argument. The argument is either not supplied or what is supplied is not a function.
As @Gordon comments: Your post includes too little to be more helpful.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Qbza, your code invokes something (establishing a connection?) that expects a callback function as argument. The argument is either not supplied or what is supplied is not a function.
As @Gordon comments: Your post includes too little to be more helpful.