@Retention(value=RUNTIME) @Target(value=FIELD) @Documented public @interface StatusComponent
@StatusComponent
annotation is used to specify which fields of a
LhingsDevice instance are status components of the device. Currently only
fields of type int, float, double, boolean, String and java.util.Date (and
the corresponding wrapper types) can be annotated with this
@StatusComponent
. The value of a field annotated in this way
will be automatically stored in Lhings when calling the method
storeStatus()
, and its
value will be shown in the control panel of the device both in Lhings web interface and in Lhings Mobile apps
for Android
and iPhone.public abstract String name
Copyright © 2014. All rights reserved.