How to use settings.writebuffer

im trying to make an extension
how do i use settings write buffer, im trying to use it but i get an error

settings.writeBuffer("MKOS_UID", randint(0x00000000, 0xFFFFFFFF))

Buffers in MakeCode usually are byte arrays. If you want to store an integer, then use settings.writeNumber() instead.

I wrote a brief tutuorial on using the settings namespace in JavaScript a while ago. Feel free to check it out for additional information.

If you have other questions, then feel free to ask.

1 Like

thank you

1 Like