Microsoft MakeCode

Increasing program file size

I am having compilation error that says program too big by 16 bytes!. How can I increase program size limit.

To replicate:

  • Start new project
  • Import this extension (
  • Paste this code in JS mode:
    ITR.connectToWifi(“ALongWiFiSSID”, “ALongWifiPassword”)
  • Click Right click>inspect>console tab.
  • Click download button on microbit editor, console will show the error.

ITR.connectToATT(“abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”, “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”)

    basic.forever(function () {

        ITR.IoTSendValueToATT(ITR.temperature(ITR.Temperature.Celcius), "temperature")


Hi KalbeAbbas,

I have also been running into program memory issues. You can take a look at my post here:

From my findings, it appears the base code takes around 91% of program memory ever with a blank project (on a V1.x micro:bit). I’ve been looking for ways to reduce memory size while maintaining core functionality for students using it.

Maybe let me know if you’ve found anything and I’ll do the same.