I having problems with giving over references in c++ for a node mcu. Im compiling with Platform IO (I tried Arduino also but had similar problems) i structed my class like that