|
@@ -64,7 +64,6 @@ class MqttManager {
|
|
|
// 触发回调
|
|
|
const topicCallbacks = this.callbacks.get(topic) || [];
|
|
|
topicCallbacks.forEach(cb => cb(topic, payload));
|
|
|
- console.info("sssssss"+payload)
|
|
|
try {
|
|
|
const valueJson: MQTTReceiveData = JSON.parse(payload);
|
|
|
const station2Set = valueJson?.d?.find(item => item.tag === 'Station2Set')?.value;
|
|
@@ -83,7 +82,6 @@ class MqttManager {
|
|
|
valueJson?.d?.find(item => item.tag === 'RFID2Data3')?.value as number,
|
|
|
valueJson?.d?.find(item => item.tag === 'RFID2Data4')?.value as number
|
|
|
);
|
|
|
- console.info(TAG,`抽屉内${rfidStringIn}:抽屉外${rfidStringOut}`)
|
|
|
AppStorage.SetOrCreate<number>('drawerPositionStatus', station2Set);
|
|
|
AppStorage.SetOrCreate<number>('materialBoxWeight', station2Weight);
|
|
|
AppStorage.SetOrCreate<string>('materialBoxID', rfidStringIn);
|
|
@@ -199,7 +197,6 @@ export interface MQTTReceiveData {
|
|
|
|
|
|
|
|
|
function decodeRegister(regValue: number | undefined): string {
|
|
|
- console.info("regvalue"+String(regValue))
|
|
|
if (regValue === undefined) return ''; // 处理undefined
|
|
|
|
|
|
// 确保是16位无符号整数
|