Oh, sorry - that's my mistake copy/pasting. Try:
wifi.enableMDNS = function(hostname, callback) { this.at.cmd("AT+MDNS=1,"+JSON.stringify(hostname)+',"http",80\r\n',500,function(d) { callback(d=="OK"?null:d); }); };
@Gordon started
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.
Oh, sorry - that's my mistake copy/pasting. Try: