Creating an xmpp solution, Step 1: configuring an xmpp server – Echelon SmartServer XMPP Client User Manual

Page 12

Advertising
background image

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 the
JID by appending a slash followed by the name of the resource.
For example, the full JID of a user's mobile account would
be [email protected]/mobile.

For a SmartServer client, you can append “/ilon” to identify the
XMPP client as a SmartServer more easily.

For example, a JID for a SmartServer with a MAC ID of 08-00-00-1A-7C-62 that uses an
XMPP server with a hostname of myDomain.com would be 08-00-00-1A-7C-
[email protected]/ilon
. Client applications may use any JID, as long as they are unique for
each client and share the same hostname.

Creating an XMPP Solution

Enabling the SmartServer and client applications to exchange data using XMPP entails the following
steps, which are described in the subsequent chapters:

1.

Configuring an XMPP server.

2.

Configuring the SmartServer as an XMPP client.

3.

Developing a client application.

4.

Adding user accounts to the XMPP server for the SmartServers and client applications.

5.

Exchanging data between the SmartServer and client application over XMPP.

Step 1: Configuring an XMPP Server

You need to configure an XMPP server to facilitate bi-directional client-to-client communication
between SmartServers and client applications. You can use any XMPP server that supports BOSH.
For a list of available XMPP servers, go to

xmpp.org/xmpp-software/servers/

. Echelon has tested the

SmartServer XMPP support using the ejabberd XMPP server, which includes a BOSH connection
manager that is enabled by default.

To download, install, and configure the XMPP Server, follow these steps:

1.

Download the ejabberd XMPP server from

www.ejabberd.im/

(community Web site),

www.process-one.net/en/ejabberd/

(commercial Web site), or

http://www.process-

one.net/en/blogs/

(blogs).

Advertising