@eohjsc/react-native-smart-city 0.4.64 → 0.4.65-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -211,8 +211,8 @@ async function sendCommandSingleAction(connection, ghAction, data) {
|
|
|
211
211
|
const { message } = ghAction || {};
|
|
212
212
|
const name = getServiceName(message);
|
|
213
213
|
|
|
214
|
-
if (name && data) {
|
|
215
|
-
message.service_data[name] = data;
|
|
214
|
+
if (name && data?.value !== undefined) {
|
|
215
|
+
message.service_data[name] = data?.value;
|
|
216
216
|
}
|
|
217
217
|
try {
|
|
218
218
|
await connection.sendMessagePromise(message);
|
|
@@ -517,7 +517,8 @@ const DeviceDetail = ({ route }) => {
|
|
|
517
517
|
!configIds.includes(configId) && configIds.push(configId);
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
|
-
|
|
520
|
+
configIds = configIds.filter(Boolean);
|
|
521
|
+
configIdsTemp.current = configIds;
|
|
521
522
|
|
|
522
523
|
configIds.map((id) => {
|
|
523
524
|
params.append('config', id);
|
|
@@ -530,7 +531,6 @@ const DeviceDetail = ({ route }) => {
|
|
|
530
531
|
params: params,
|
|
531
532
|
}
|
|
532
533
|
);
|
|
533
|
-
|
|
534
534
|
setLoading((preState) => {
|
|
535
535
|
if (preState.isConnected) {
|
|
536
536
|
return {
|
|
@@ -594,7 +594,7 @@ const DeviceDetail = ({ route }) => {
|
|
|
594
594
|
sensor?.is_managed_by_backend &&
|
|
595
595
|
sensor?.device_type !== DEVICE_TYPE.LG_THINQ
|
|
596
596
|
) {
|
|
597
|
-
const updateInterval = setInterval(() => fetchValues(),
|
|
597
|
+
const updateInterval = setInterval(() => fetchValues(), 2000);
|
|
598
598
|
fetchValues();
|
|
599
599
|
return () => clearInterval(updateInterval);
|
|
600
600
|
} else {
|