Chapter 8

Investigating the micro:bit Radio

In Chapter 7 we saw that the BLE offering on micro:bit is comprised of two completely different components:

  • A physical, on-board radio transmitter / receiver (antenna).
  • The BLE standards that govern what is transmitted, how it is transmitted and how messages received are handled.

BLE acts as a manager: it governs how the antenna is used, but it is completely separate from the antenna.  It is possible to bypass BLE and access the radio directly, to manage the antenna ourselves.  This chapter will look at how we can use the micro:bit radio to bring value to our data science toolkit.

Section 8.7: Node code

The node code looks like this:

Section 8.8: Server code

The server code is shown below: