@Service
public class DefaultDeviceStateService {
private ListeningScheduledExecutorService queueExecutor;
@PostConstruct
public void init() {
// Should be always single threaded due to absence of locks.
queueExecutor = MoreExecutors.listeningDecorator(Executors.newSingleThreadScheduledExecutor(ThingsBoa
thingsboard.ymlstate: # Should be greater then transport.sessions.report_timeout #不活动超时时间 defaultInactivityTimeoutInSec: "${DEFAULT_INACTIVITY_TIMEOUT:120}" #检查间隔 defaultStateCheckIntervalInSec: "${DEFAULT_STATE_CHECK_INTERVAL:30}" #是否发送到遥测数据