Can we get data from a class into another class?

You have an infinite loop issue, you should try linking them using optionals : @editable MyDeviceMaybe : ?my_device = false