You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • In your module, you haven't exported anything - so the result of including it will be an empty object. Do:

    var wifi = require( "Wifi" );
    function MoqBase(){};
    MoqBase.prototype.ssid;
    MoqBase.prototype.startPairing = function () {...}
    exports = MoqBase;
    

    And then you should be off to a better start. However first, I'd make life simple for yourself by trying it all in one file.

About

Avatar for Gordon @Gordon started