• Hey all,

    First off I'll briefly explain what I want to do: I am looking to use the Espruino WiFi as a way to allow the tablet, which is mounted in my car, to control certain aspects of the vehicle. As an example, let's assume I want to be able to start the car's engine with my voice. I would speak a voice command to my tablet (of course this is custom software), which would then send a command to the Espruino WiFi (presumably via WiFi) and the Espruino WiFi board would then supply power to a relay which would then start the car. I would also want to be able to use my mobile phone to interact with the Espruino WiFi.

    The above scenario is all very conceptual, and it has its shortcomings, but it's along the lines of what I want to accomplish.

    Now, onto the problem: I am using a relatively simple snippet of code I found here at Espruino.com, just to create an access point:

    function onInit() {
      var wifi = require("EspruinoWiFi");
      
      console.log("Creating AP...");
      
      wifi.startAP('EspruinoAP', { password: '0123456789', authMode: 'wpa2' }, function(err) {
        if (err) console.log("Error creating AP:", err);
      });
    }
    
    onInit();
    

    Each time I reset the Espruino WiFi, I get the following error:

    Error creating AP: CWMODE failed: AT+CWMODE=2

    Has anyone had this error and have you had success fixing it?

About

Avatar for bosscube @bosscube started