SmartCGMS is a framework for continuous glucose monitoring systems. It has been used extensively for testing and optimizing in silico models, but it needs to improve its support for execution on low-power devices.

This paper proposes a real-time SmartCGMS concept based on FreeRTOS to examine options for compiling and executing SmartCGMS on low-power devices. The concept has been deployed as a native application on an ESP32 and a Raspberry Pi Zero W. Additionally, it was compiled into WebAssembly as it is an emerging approach to deploying applications to low-power devices in the Internet of Things. Compiling to WebAssembly also allows configuring and experimenting with SmartCGMS directly in the web browser. The native application and WebAssembly module were compared on GNU/Linux to decide which approach to adopt in the SmartCGMS framework.

The results confirmed the expectations of the computational and memory overhead of the WebAssembly approach. Furthermore, the size of the compiled WebAssembly SmartCGMS concept revealed that the ESP32 does not offer sufficient DRAM for the WebAssembly approach with the used setup. Regardless of these limitations, the WebAssembly approach should not be abandoned as it provides a way to execute SmartCGMS in the web browser that could help it to widespread adoption.

\newpage
