Socket
Socket
Sign inDemoInstall

bthomehub5-devicelist

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bthomehub5-devicelist

A library that returns a list of devices currently connected to a BT Home Hub 5


Maintainers
1

bthomehub5-devicelist

This library will return a dictionary containing information about the devices currently connected to a BT Home Hub 5 with a user specified IP Address.

Installation

pip install bthomhub5-devicelist

How to use

Example Usage:

import bthomehub5_devicelist
from pprint import pprint


def main():

    # If an IP Address is not specified, it will default as 192.169.1.254
    devicelist = bthomehub5_devicelist.get_devicelist('192.168.1.254')

    pprint(devicelist)


if __name__ == '__main__':
    main()

The library will return a dictionary with connected devices MAC addresses as keys and device names as values

The console output from running the example code will look like this:

>>> 
{'4f:c9:32:04:d3:ec': 'Example-PC',
 '3f:6a:66:49:d4:16': 'Example-IPhone',
 '01:5d:e8:fb:c8:a9': 'Example-Smartlight',
 '65:10:5c:6d:d0:2b': 'Example-Android'}

License

MIT - Feel free to go crazy with the code

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc