Lint and rename SolicitServicesAdvertisement
This commit is contained in:
parent
3434bfa5d3
commit
cd773157d1
5 changed files with 6 additions and 5 deletions
|
|
@ -43,8 +43,8 @@ Implementation Notes
|
|||
|
||||
"""
|
||||
|
||||
import _bleio
|
||||
import board
|
||||
import _bleio
|
||||
|
||||
from .services import Service
|
||||
from .advertising import Advertisement
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ class ProvideServicesAdvertisement(Advertisement):
|
|||
def matches(cls, entry):
|
||||
return entry.matches(cls.prefix, all=False)
|
||||
|
||||
class ServicesSolicitationAdvertisement(Advertisement):
|
||||
class SolicitServicesAdvertisement(Advertisement):
|
||||
"""Advertise what services the device would like to use over a connection."""
|
||||
# This is two prefixes, one for each ADT that can carry solicited service UUIDs.
|
||||
prefix = b"\x01\x14\x01\x15"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
def const(x):
|
||||
return x
|
||||
return x
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@ slide switch. The buttons change the color when advertising.
|
|||
|
||||
import time
|
||||
import board
|
||||
import neopixel
|
||||
import digitalio
|
||||
|
||||
import neopixel
|
||||
|
||||
from adafruit_ble import BLERadio
|
||||
from adafruit_ble.advertising.adafruit import AdafruitColor
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ peripheral.
|
|||
|
||||
import time
|
||||
|
||||
import adafruit_lis3dh
|
||||
import board
|
||||
import busio
|
||||
import digitalio
|
||||
import adafruit_lis3dh
|
||||
from adafruit_ble import BLERadio
|
||||
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
|
||||
from adafruit_ble.services.nordic import UARTService
|
||||
|
|
|
|||
Loading…
Reference in a new issue