
digital, joinID: 1, callback: genericCIPCallback) To make a subscription call the subscribe function: cipConnection.subscribe(signalType. My preference is to use ReSwift for managing state centrally (as is done in the Swift sample program). Handle this accordingly in terms of managing your state. Be aware, these are called even when an update request is made, and all signals are refreshed. You can register one (or more) callback closures to be called whenever a join message is received from the control processor. high includes the full contents of messages to and from the control system. The debugLevel parameter allows you to set increasing levels of debug to the console.off disables logging. RegistrationStateChangeCallback: registrationStateCallback)īe sure you specify the correct hostname or IP address for your control system, and the IPID for the Xpanel device you wish to use for the connection.

You will need to initialize the class, and define the connection parameters for your control system: let cipConnection = CIPConnection(withControlSystemHost: "192.168.1.2",ĬonnectionStateChangeCallback: connectionStateCallback, To use this package, first import it into your application: import SwiftCrestronCIP The sample app requires the counterpart Crestron sample program to be running on a Creston control system. See the README file for information on building and running. The CIPSampleApp Swift application demonstrates the use of this package. Familiarity with and access to Crestron's development tools, processes and terminology are required to configure the control processor in a way that allows this module to be used. This is a Swift-based socket client that facilitates communications with a Crestron control processor using the Crestron-over-IP (CIP) protocol. This Swift module was inspired by Katherine Lenae's Python CIP client. The author is not affiliated in any way with Crestron. 'XPanel', 'Smart Graphics' and 'SIMPL Windows' are all trademarks of Crestron.


NOTICE: This module is not produced, endorsed, maintained or supported by Crestron Electronics Incorporated. A Swift package for communicating with Crestron control processors via the Crestron over IP (CIP) protocol.
