Read/Write from sim to an external process in real time

Hi forum,

I’m looking to create a simulated environment for the microbit sim. It would be a simulated environment (2D) with simulated hardware (a robotic car with servos and sensors) controlled by the microbit sim in makecode (NOT the actual hardware).

  • I can’t find any official way to read data in real time from the sim into another process (JS in another HTML frame, for example)
  • I can’t find a way for the microbit sim to receive data from a separate process

Is it possible? Thanks for reading.