Skip to content

Commit cae59d4

Browse files
authored
Merge pull request #17 from Neradoc/fix-documentation
Fix documentation
2 parents eff9e3f + 1df5ee9 commit cae59d4

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

adafruit_fona/adafruit_fona.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
# pylint: disable=too-many-instance-attributes, too-many-public-methods
6565
class FONA:
6666
"""CircuitPython FONA module interface.
67-
:param ~busio.uart UART: FONA UART connection.
68-
:param ~digialio RST: FONA RST pin.
69-
:param ~digialio RI: Optional FONA Ring Interrupt (RI) pin.
70-
:param bool debug: Enable debugging output.
7167
68+
:param ~busio.UART uart: FONA UART connection.
69+
:param ~digitalio.DigitalInOut rdt: FONA RST pin.
70+
:param ~digitalio.DigitalInOut ri: Optional FONA Ring Interrupt (RI) pin.
71+
:param bool debug: Enable debugging output.
7272
"""
7373

7474
TCP_MODE = const(0) # TCP socket
@@ -442,9 +442,8 @@ def receive_sms(self) -> Tuple[str, str]:
442442
"""Checks for a message notification from the FONA module,
443443
replies back with the a tuple containing (sender, message).
444444
445-
NOTE: This method needs to be polled consistently due to the lack
446-
of hw-based interrupts in CircuitPython.
447-
445+
:note: This method needs to be polled consistently due to the lack
446+
of hw-based interrupts in CircuitPython.
448447
"""
449448
if self._ri is not None: # poll the RI pin
450449
if self._ri.value:

adafruit_fona/adafruit_fona_network.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@
2828

2929

3030
class CELLULAR:
31-
"""Interface for connecting to and interacting with GSM and CDMA cellular networks."""
31+
"""Interface for connecting to and interacting with GSM and CDMA cellular networks.
32+
33+
:param FONA fona: The Adafruit FONA module we are using.
34+
:param tuple apn: Tuple containing APN name, (optional) APN username,
35+
and APN password.
36+
"""
3237

3338
def __init__(
3439
self, fona: FONA, apn: Tuple[str, Optional[str], Optional[str]]
3540
) -> None:
36-
"""Initializes interface with cellular network.
37-
38-
:param FONA fona: The Adafruit FONA module we are using.
39-
:param tuple apn: Tuple containing APN name, (optional) APN username,
40-
and APN password.
41-
"""
4241
self._iface = fona
4342
self._apn = apn
4443
self._network_connected = False

adafruit_fona/fona_3g.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
# SPDX-License-Identifier: MIT
55

66
"""
7-
:py:class:`~adafruit_fona.fona_3g.FONA3G`
8-
`adafruit_fona_3g`
7+
`fona_3g`
98
================================================================================
109
1110
FONA3G cellular module instance.
@@ -40,9 +39,9 @@
4039
class FONA3G(FONA):
4140
"""FONA 3G module interface.
4241
43-
:param ~busio.uart uart: FONA UART connection.
44-
:param ~DigitalInOut rst: FONA RST pin.
45-
:param ~DigitalInOut ri: Optional FONA Ring Interrupt (RI) pin.
42+
:param ~busio.UART uart: FONA UART connection.
43+
:param ~digitalio.DigitalInOut rst: FONA RST pin.
44+
:param ~digitalio.DigitalInOut ri: Optional FONA Ring Interrupt (RI) pin.
4645
:param bool debug: Enable debugging output.
4746
"""
4847

docs/api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99

1010
.. automodule:: adafruit_fona.adafruit_fona_socket
1111
:members:
12+
13+
.. automodule:: adafruit_fona.adafruit_fona_network
14+
:members:
15+
16+
.. automodule:: adafruit_fona.fona_3g
17+
:members:

0 commit comments

Comments
 (0)