Skip to content

Commit 35308ae

Browse files
committed
Fix naming convention Json to JSON
1 parent 5eb2b5b commit 35308ae

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

adafruit_ble/characteristics/json.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
`json`
77
====================================================
88
9-
This module provides Json characteristic.
9+
This module provides JSON characteristic.
1010
1111
"""
1212

@@ -18,8 +18,8 @@
1818
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BLE.git"
1919

2020

21-
class JsonCharacteristic(Characteristic):
22-
"""Json string characteristic for JSON serializable values of a limited size (max_length)."""
21+
class JSONCharacteristic(Characteristic):
22+
"""JSON string characteristic for JSON serializable values of a limited size (max_length)."""
2323

2424
def __init__(
2525
self,

examples/ble_json_peripheral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5-
# Provide readable sensor values and writable settings to connected devices via Json characteristic.
5+
# Provide readable sensor values and writable settings to connected devices via JSON characteristic.
66

77
import time
88
import random

examples/ble_json_service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
from adafruit_ble.uuid import VendorUUID
22
from adafruit_ble.services import Service
33
from adafruit_ble.characteristics import Characteristic
4-
from adafruit_ble.characteristics.json import JsonCharacteristic
4+
from adafruit_ble.characteristics.json import JSONCharacteristic
55

66

7-
# A custom service with two Json characteristics for this device. The "sensors" characteristic
7+
# A custom service with two JSON characteristics for this device. The "sensors" characteristic
88
# provides updated sensor values for any connected device to read. The "settings" characteristic
99
# can be changed by any connected device to update the peripheral's settings. The UUID of your
1010
# service can be any valid random uuid (some BLE UUID's are reserved).
11-
# NOTE: Json data is limited by characteristic max_length of 512 byes.
11+
# NOTE: JSON data is limited by characteristic max_length of 512 byes.
1212
class SensorService(Service):
1313
uuid = VendorUUID("51ad213f-e568-4e35-84e4-67af89c79ef0")
1414

15-
settings = JsonCharacteristic(
15+
settings = JSONCharacteristic(
1616
uuid=VendorUUID("e077bdec-f18b-4944-9e9e-8b3a815162b4"),
1717
properties=Characteristic.READ | Characteristic.WRITE,
1818
initial_value={
1919
'unit': 'celsius'
2020
}
2121
)
2222

23-
sensors = JsonCharacteristic(
23+
sensors = JSONCharacteristic(
2424
uuid=VendorUUID("528ff74b-fdb8-444c-9c64-3dd5da4135ae"),
2525
properties=Characteristic.READ,
2626
)

0 commit comments

Comments
 (0)