Level 3Unit A · Session 6
6

Unit A · On the network

Putting Unit A together

What we are making: one page of your own, using everything from the last five sessions and nothing new at all.

Why a session with no new ideas

In five sessions you have met a new board, joined a network, served a page, put a button on it that reaches back, and made the page readable. That is a great deal, and it has arrived quickly.

Today nothing new arrives. You build one thing that uses all of it, and by the end you will know which parts you actually understood and which parts you copied. That is the whole point, and it is far better to find out now than in March.

The brief

  1. A page served by your board, on the network.
  2. One reading on it, from any sensor you like — even the board's own internal one.
  3. One control that changes something you can see or hear.
  4. Styled well enough to read at arm's length on a phone.
  5. Your team name on it.

Do it from memory first

Start a new sketch and write as much as you can without looking back at sessions 1 to 5. When you get stuck, note down exactly what you were stuck on, then go and look it up.

That list of what you got stuck on is the useful output of today. Hand it in with the device.

💡 Tip
Being stuck on the WiFi lines is completely normal and not worth worrying about — nobody memorises those. Being stuck on what a function is for, or on how the page gets built up out of strings, is worth telling your teacher about, because that is the part everything else in the year rests on.
What you seeWhyWhat to do
I cannot remember any of itYou copied session 3 rather than reading it.Work through it again slowly. Today is exactly when to do that.
It compiles but the page is blankhandleRoot is not registered.Check the server.on("/", handleRoot); line.
It worked last week and not nowA different network, or a new IP address.Check the Serial Monitor for the current address. It changes.
I finished in twenty minutesGood. Then make the page better.Add the reading's age, or a second control, or make it work on a phone held at arm's length across the room.

Hand in

  • Your page, working, on a phone that is not yours.
  • Your list of what you had to look up.
  • One sentence: which part of Unit A you would like to go over again.
Challenge optional — only if you finish early
  • Rebuild your Unit A page from memory with the book shut. Note every line you looked up.
5. A page you designed yourself