Skip to content

Commit 1eeeb3e

Browse files
Update Notecard API from upstream schema changes (5ae70a86aae09ae2be5a92e07cccfa8ab1a36c62)
1 parent a263052 commit 1eeeb3e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

notecard/hub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def log(card, alert=None, sync=None, text=None):
5151

5252
@validate_card_object
5353
def set(card, align=None, details=None, duration=None, host=None, inbound=None, mode=None, off=None, on=None, outbound=None, product=None, seconds=None, sn=None, sync=None, umin=None, uoff=None, uperiodic=None, version=None, vinbound=None, voutbound=None):
54-
r"""Use hub.set request is the primary method for controlling the Notecard's Notehub connection and sync behavior.
54+
"""Use hub.set request is the primary method for controlling the Notecard's Notehub connection and sync behavior.
5555
5656
Args:
5757
card (Notecard): The current Notecard object.
@@ -62,7 +62,7 @@ def set(card, align=None, details=None, duration=None, host=None, inbound=None,
6262
inbound (int): The max wait time, in minutes, to sync inbound data from Notehub. Explicit syncs (e.g. using `hub.sync`) do not affect this cadence. When in `periodic` or `continuous` mode this argument is required, otherwise the Notecard will function as if it is in `minimum` mode as it pertains to syncing behavior. Use `-1` to reset the value back to its default of `0`. A value of `0` means that the Notecard will never sync inbound data unless explicitly told to do so (e.g. using `hub.sync`).
6363
mode (str): The Notecard's synchronization mode. NOTE: The Notecard must be in `periodic` or `continuous` mode to use the onboard GPS module.
6464
off (bool): Set to `true` to manually instruct the Notecard to resume periodic mode after a web transaction has completed.
65-
on (bool): If in `periodic` mode, used to temporarily switch the Notecard to `continuous` mode to perform a web transaction.\n\nIgnored if the Notecard is already in `continuous` mode or if the Notecard is NOT performing a web transaction.
65+
on (bool): If in `periodic` mode, used to temporarily switch the Notecard to `continuous` mode to perform a web transaction. Ignored if the Notecard is already in `continuous` mode or if the Notecard is NOT performing a web transaction.
6666
outbound (int): The max wait time, in minutes, to sync outbound data from the Notecard. Explicit syncs (e.g. using `hub.sync`) do not affect this cadence. When in `periodic` or `continuous` mode this argument is required, otherwise the Notecard will function as if it is in `minimum` mode as it pertains to syncing behavior. Use `-1` to reset the value back to its default of `0`. A value of `0` means that the Notecard will never sync outbound data unless explicitly told to do so (e.g. using `hub.sync`).
6767
product (str): A Notehub-managed unique identifier that is used to match Devices with Projects. This string is used during a device's auto-provisioning to find the Notehub Project that, once provisioned, will securely manage the device and its data.
6868
seconds (int): If in `periodic` mode and using `on` above, the number of seconds to run in continuous mode before switching back to periodic mode. If not set, a default of 300 seconds is used. Ignored if the Notecard is already in continuous mode.

notecard/ntn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
@validate_card_object
1616
def gps(card, off=None, on=None):
17-
"""Determine whether a Notecard should override a paired Starnote's GPS/GNSS location with its own GPS/GNSS location. The paired Starnote uses its own GPS/GNSS location by default.
17+
"""On a Notecard paired with a Starnote, this controls whether the Starnote uses a location known to the paired Notecard instead of acquiring one with its own GPS/GNSS module. It does not, by default. On Notecard for Skylo, the satellite radio and the GPS/GNSS are part of the same module. This request controls whether the Notecard uses a known location (typically a fixed location set with `card.location.mode`), instead of acquiring a new location for NTN use.
1818
1919
Args:
2020
card (Notecard): The current Notecard object.
21-
off (bool): When `true`, a paired Starnote will use its own GPS/GNSS location. This is the default configuration.
22-
on (bool): When `true`, a Starnote will use the location known to its paired Notecard, instead of the Starnote's own GPS/GNSS module.
21+
off (bool): When `true`, the Notecard does not supply its location to the NTN module. This is the default configuration.
22+
on (bool): When `true`, the Notecard supplies its location to the NTN module. If the Notecard does not yet know its location, none is supplied, and this setting has no effect until a location becomes available.
2323
2424
Returns:
2525
dict: The result of the Notecard request.

0 commit comments

Comments
 (0)