Write data

Writes data at a regular interval

forever(function () {
    serial.writeValue("dice", Math.randomRange(1, 6));
    pause(500)
})
serial