Skip to content

Mouldking module not working, possibly wrong device address? #727

@sebastian-ruiz

Description

@sebastian-ruiz

I am using an esp-WROOM-32 dev kit. I am trying to use the mouldking.js module but I am having trouble with it.

I have the Mould King 4.0 Powered Module.

When I run the code on http://www.espruino.com/LEGO+Power+Functions+Clone nothing happens. When I use my iphone to connect to the mouldking, the frequency of the flashing light changes on the mouldking powered module. This doesn't happen when I run the code.

I tried to scan for Mould King packets from the app with UUID 65280 / 0xFF00, as written in the notes on that page, but I don't get any packets with that manufacturerData.

When I open the iphone app and connect, it is sending packets like this:

BluetoothDevice: {
  "id": "7b:fd:01:8b:6e:5e random",
  "rssi": -53,
  "data": new Uint8Array([2, 1, 26, 27, 3, 249, 8, 73, 34, 71, 186, 196, 188, 19, 10, 219, 130, 101, 177, 189, 11, 37, 9, 125, 210, 18, 19, 20, 21, 22, 23]).buffer,
  "services": [
    "08f9",
    "2249",
    "ba47",
    "bcc4",
    "0a13",
    "82db",
    "b165",
    "0bbd",
    "0925",
    "d27d",
    "1312",
    "1514",
    "1716"
   ]
 }

I don't see these same numbers in the mouldking.js. Maybe mine is a different version?

I don't see the hello message packet that the iphone is sending.

Thank you very much for your help and for your time. Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions