Hi, I have two Raspberry Pi devices that I am using with Matlab Online, and I would like to be able to determine which one is being run from within (compiled) code run using deploy.
raspi.system only allows use of the ls commend when used from Matlab Online, so I can't do system('hostname'). I also tried hostname = getenv("HOSTNAME") but I'm not user it's working because
coder.extrinsic('disp')
hostname = getenv("HOSTNAME")
disp(sprintf('Environment variable HOSTNAME="%s"', hostname ) )
doesn't display anything on the console in Matlab Onlne.
Suggestions?