Home Wi-Fi join API (connectWifi SET + scan/status) with docs
This commit is contained in:
1 parent
3c7e74fd0e
commit
eda78dd7d1
4 files changed
+86
-4
No files matched your search
@@ -175,6 +175,7 @@ def direct_connect_request(
|
||||
equip_no: str,
|
||||
data: Optional[Dict[str, Any]] = None,
|
||||
snno: int = 0,
|
||||
operate: CommunicationOperate = CommunicationOperate.QUERY,
|
||||
) -> CommunicationObject:
|
||||
"""Build a *direct-connect* query envelope.
|
||||
|
||||
@@ -190,13 +191,13 @@ def direct_connect_request(
|
||||
``sendObject`` (see :class:`SequenceNumber`); pass the issued value
|
||||
when re-serialising.
|
||||
"""
|
||||
payload: Dict[str, Any] = {"opt": int(CommunicationOperate.QUERY)}
|
||||
payload: Dict[str, Any] = {"opt": int(operate)}
|
||||
if data:
|
||||
payload.update(data)
|
||||
return CommunicationObject(
|
||||
cmd_type=socket_cmd_type(cmd),
|
||||
equip_no=equip_no,
|
||||
op_type=CommunicationOperate.QUERY,
|
||||
op_type=int(operate),
|
||||
snno=snno,
|
||||
data=payload,
|
||||
)
|
||||
Reference in new issue
Block a user