Skip to content

Commit

Permalink
Merge pull request #199 from tuya/fix/mqtt-protocol-23
Browse files Browse the repository at this point in the history
chore: fix there is no signal of mqtt protocol 23
  • Loading branch information
ShinyLeee authored Nov 28, 2023
2 parents e7a06d7 + 27fac5a commit 9ca0d60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export default class NavigatorLayout extends Component {
if (!data) return;
if (protocol === 23) {
const { data: result } = data;
if (!result || result.signal === undefined) return;
const { signal } = result;
this._getRssiInfo().then(res => {
if (!res) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export default function createNavigator({ router, screenOptions }, navigationCon
if (!data) return;
if (protocol === 23) {
const { data: result } = data;
if (!result || result.signal === undefined) return;
const { signal } = result;
this._getRssiInfo().then(res => {
if (!res) {
Expand Down
1 change: 1 addition & 0 deletions packages/tuya-panel-layout/src/navigator-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export default class NavigatorLayout extends Component<INavigatorProps, INavigat
if (!data) return;
if (protocol === 23) {
const { data: result } = data;
if (!result || result.signal === undefined) return;
const { signal } = result;
this._getRssiInfo().then((res: { value: number; supported: boolean }) => {
if (!res) {
Expand Down
1 change: 1 addition & 0 deletions packages/tuya-panel-layout/src/react-navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export default function createNavigator(
if (!data) return;
if (protocol === 23) {
const { data: result } = data;
if (!result || result.signal === undefined) return;
const { signal } = result;
this._getRssiInfo().then((res: { value: number; supported: boolean }) => {
if (!res) {
Expand Down

0 comments on commit 9ca0d60

Please sign in to comment.