a guest Apr 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #!/usr/bin/env python3
- import sys
- from logging import DEBUG
- from time import sleep
- from bleson import get_provider, Advertiser,UUID128, Advertisement
- UUID = "3ebdbc03-fa0e-4a14-9084-6e14412bfc40"
- SERVICE = "XRPTIP"
- adapter = get_provider().get_adapter()
- advertiser = Advertiser(adapter)
- advertisement = Advertisement()
- advertisement.name = SERVICE
- advertisement.uuid128s = [UUID128(UUID)]
- advertiser.advertisement = advertisement
- print("Started advertisering on UUID %s - %s" % (UUID, SERVICE))
- while True:
- except KeyboardInterrupt:
RAW Paste Data