Coder Social home page Coder Social logo

zhang359264726 / drivers-common-public Goto Github PK

View Code? Open in Web Editor NEW

This project forked from control4/drivers-common-public

0.0 0.0 0.0 163 KB

Control4-developed libraries to provide specific functionality on top of that built-in to Driverworks.

License: Other

Lua 100.00%

drivers-common-public's Introduction

Common Libraries for Control4 development

This repository contains a number of Control4-developed libraries to provide specific functionality on top of that built-in to Driverworks.

Functionality

Lua files in the global directory import all their functions into the _G global namespace without any additional statements needed. They can be used with a simple require statement: require ('drivers-common-public.global.lib') will import all the functions from the lib.lua file into the global namespace.

Lua files in the module directory create an object that can only be accessed by being assigned to a variable.

Globals

  • handlers.lua : Defines handler functions for all built-in incoming Driverworks functions to allow for easier specific handling of network connections, proxy/command requests and so on.
  • lib.lua : Simple helper functions used in many drivers.
  • make_short_link.lua : Makes short links on the link.ctrl4.co or link.control4dev.com URLs. Requires an API key for use: contact your Control4 representative for more details.
  • msp.lua : Manages many of the key features of all Control4 native-audio MSP drivers. Also contains many helper functions for dealing with Navigators in MSP.
  • timer.lua : Helper library to manage all things timer related in Driverworks.
  • url.lua : Abstracts out much of the necessary callback functionality to use asynchronous URL requests in Driverworks.

Modules

  • auth_code_grant.lua : Setup an OAuth 2 connection using the Authorization Code Grant flow. Requires an API key to use : contact your Control4 representative for more details.
  • auth_device_PIN.lua : Setup an OAuth 2 connection using the PIN Grant flow. Requires an API key to use : contact your Control4 representative for more details.
  • json.lua : Pure Lua implementation of a JSON parser for encode/decode. Copyright 2010-2017 Jeffrey Friedl, see LICENSE.md for details.
  • ssdp.lua : Implements SSDP discovery in pure Driverworks. Does not register a listening server.
  • websocket.lua : Implements a websocket client in pure Driverworks.

drivers-common-public's People

Contributors

wwalshc4 avatar rericksonc4 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.