Blog2012 ≫ doh my blog does not like json code as a subject line then (ROBOT BUTLER!)

{
  a: {
    0: 472,
    1: 404,
    2: 387,
    3: 357,
    4: 361,
    5: 356
  },
  d: {
    7: 0
  }
}

It may not look like much but this is a big step in my robot butler project! I connected the ethernet shield to the arduino and made it return some json that reports on the readings from the analog and digital input pins. 6 analog inputs, with no device connected so all responding nonsense unfortunately, and only one digital pin that (7) that is set to off. I've made good progress on the phone app too, I can change and save the config of the house, how many rooms, and what are the addresses of the devices in each room. Now I have the json coming from the arduino I just need to get the app requesting the json and reporting back, then make the phone send post / put requests too to change the state of the pins on the arduino.

The json is deliberately hard to read (lets call it terse), it's for a computer to read, not you.

Getting there!

arduino: Microcontroller, hardware prototyping platform, a tiny specialised computer.

⬅️ :: ➡️

Paul Clarke's blog - I live in Hythe in the far South. Wed + father to two, I am a full-stack web engineer, and I do mostly js / Node, some ruby, python, php ect ect. I like pubbing, parkrun, eating, home-automation and other diy jiggery-pokery, history, genealogy, TV, squirrels, pirates, lego, + TIME TRAVEL.