SmartServer XMPP Client Developer’s Guide 078-0471-01A
2 Using SmartServer XMPP Introduction You can use the Extensible Messaging and Presence Protocol (XMPP) to enable SmartServers and client applicatio
SmartServer XMPP Client Developer’s Guide 3 The SmartServer supports the following XMPP extensions: Bidirectional-streams Over Synchronous HTTP (BO
4 Using SmartServer XMPP home, work, or mobile). This property enables a user to log in from multiple locations. This property may be included in
SmartServer XMPP Client Developer’s Guide 5 2. Install the ejabberd Server following these steps: a. Follow the instructions in the Setup wizard
6 Using SmartServer XMPP d. Enter a password for the administrator that is at least five characters, and then confirm it. e. Complete the ejabbe
SmartServer XMPP Client Developer’s Guide 7 c. The Command prompt closes automatically after approximately 40 seconds, the ejabberd Server starts
8 Using SmartServer XMPP 4. The ejabberd Web Admin Web page opens. Step 2: Configuring the SmartServer XMPP Client You can setup a SmartServer a
SmartServer XMPP Client Developer’s Guide 9 2. Add the XMPP server as a host device to the SmartServer following these steps: a. In the navigati
10 Using SmartServer XMPP same XMPP server must be used by the SmartServer and all client applications that will access the SmartServer. 3. Add
SmartServer XMPP Client Developer’s Guide 11 The default port is 5280 for the ejabberd XMPP connection manager. Message Domain Enter the ejabberd
Echelon, LON, LONWORKS, LonTalk, Neuron, LONMARK, 3120, 3150, LNS, LonMaker, and the Echelon logo are trademarks of Echelon Corporation registered in
12 Using SmartServer XMPP Step 3: Developing a Client Application You can develop a client application that communicates with one or more SmartServe
SmartServer XMPP Client Developer’s Guide 13 Tip: If you copied your ejabberd domain server, administrator password, MAC ID to a text file, also c
14 Using SmartServer XMPP <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
SmartServer XMPP Client Developer’s Guide 15 • Read Professional XMPP Programming with JavaScript and jQuery (Moffit, Jack. Indianapolis: Wiley P
16 Using SmartServer XMPP 5. Enter the user name and password for the SmartServer following these steps: a. In the User box, enter the MAC ID of
SmartServer XMPP Client Developer’s Guide 17 e. You can click the SmartServer XMPP client user name to view the connection status of your SmartSe
18 Using SmartServer XMPP 7. Repeat step 5 for any other SmartServer or client application. Step 5: Exchanging Data over XMPP After you have add
SmartServer XMPP Client Developer’s Guide 19 4. Click OK. 5. The SmartServer and Pidgin XMPP instant message dialog opens. 6. Enter any mes
20 Using SmartServer XMPP Note: You can also view this message in the SmartServer console. See Appendix B of the SmartServer 2.0 User’s Guide for
SmartServer XMPP Client Developer’s Guide 21 b. Select the XMPP Console check box and then click Close. c. Right-click the Pidgin tray icon, poi
SmartServer XMPP Client Developer’s Guide iii Table of Contents Preface ...
22 Using SmartServer XMPP d. The XMPP Console dialog opens. e. Copy and paste the following SOAP/XML request in the text box at the bottom: <iq
SmartServer XMPP Client Developer’s Guide 23 Creating a Web Connection Over XMPP You can create Web connections that use XMPP to communicate betw
24 Using SmartServer XMPP 2. In the Setup – Remote i.LON SmartServer Web page, enter the IP address or hostname of the remote SmartServer in the IP
SmartServer XMPP Client Developer’s Guide 25 5. Right-click the new host entry in the navigation pane, point to Add Service, and then click WebBi
www.echelon.com
iv Preface
SmartServer XMPP Client Developer’s Guide v Preface You can use the Extensible Messaging and Presence Protocol (XMPP) to enable communication betw
vi Preface Purpose This document describes how to use XMPP to enable the SmartServer and client applications to communicate bi-directionally when
SmartServer XMPP Client Developer’s Guide vii Region Languages Supported Contact Information Europe English German French Italian Echelon Europe
viii Preface
SmartServer XMPP Client Developer’s Guide 1 1 Using SmartServer XMPP This chapter summarizes how the SmartServer and client applications can excha
Kommentare zu diesen Handbüchern