0.0
No release in over 3 years
Low commit activity in last 3 years
Communication helper gem for talking to Device Database
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.2
~> 0.9
~> 1.20

Runtime

< 4.3, >= 4.0
~> 1.0
 Project Readme

DeviceDB Comms

The API for communicating with the Device Database for the Hive

Usage

Configure with:

DeviceDBComms.configure do |config|
  config.url = 'https://devicedb.url'
  config.pem_file = '/location/of/certificate'
  config.ssl_verify_mode = OpenSSL::SSL::VERIFY_PEER
end

Working with a Hive

hive = DeviceDBComms::Hive.new()

# Register a new hive
hive.register( hive_name, mac_address, ip_address )

# Find details about a hive
hive.find( hive_id )

# Poll a hive
hive.poll( hive_id )

Working with a Device

device = DeviceDBComms::Device.new()

# Register a new device
device.register( device_parameters )

# Find details about a device
device.find( device_id )

# Poll a device
device.poll( device_id )

# Set the current application of a device
device.set_application( device_id, application_name )

# Find the recorded application for a device
device.get_application( device_id )

# Attach a device to a hive
device.hive_connect( device_id, hive_id )

# Detach a device from a hive
device.hive_disconnect( device_id )

# Send an action to a device
device_action( device_id, action_type, action_body, number_of_retries )

License

DeviceDB Comms is available to everyone under the terms of the MIT open source licence. Take a look at the LICENSE file in the code.

Copyright (c) 2015 BBC