[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xAP Jabber
Tried that but it doesn't work, it just displays it all on one
line....
Here's what I'm using in FloorPlan (messenger schema):
tmp="message.send" & chr(10)
tmp=tmp & "{" & chr(10)
tmp=tmp & "to=somechimp@xxxxxxx" & chr(10)
tmp=tmp & "body=Environment: <Info> Garage Temperature:
" & GarageLevel & "
deg C. RackTop Temperature: " & RackTopLevel & " deg C.
RackBottom
Temperature: " & RackBottomLevel & " deg C. Outside
Temperature: " &
OutsideLevel & " deg C." & chr(10)
tmp=tmp & "}" & chr(10)
xap.sendxap tmp,"messenger.cmd"
Martyn
----- Original Message -----
From: "max barker" <vworpi@xxxxxxx>
To: <xap_automation@xxxxxxx>
Sent: Monday, July 07, 2008 5:29 PM
Subject: Re: [xap_automation] xAP Jabber
> You could do a targeted message.display instead, this sort of thing
> works for me using floorplan:
>
> xap-header
> {
> v=12
> hop=1
> uid=FF456200
> Class=message.display
> Source=mi4.floor.AHSHASERVER
> Target=mi4.jabber.Jabber:somechimp@xxxxxxx
> }
> Display.text
> {
> Line1=Environment: <Info>
> Line2=Garage Temperature: 17.81 deg C.
> Line3=RackTop Temperature: 30.63 deg C.
> Line4=RackTop Temperature: 30.63 deg C.
> Line5=RackBottom Temperature: 28.34 deg C.
> Priority=1
> Duration=20
> }
> Display.look
> {
> Align=Left
> }
>
>
> Max
>
>
> 2008/7/7 Martyn Wendon <martynwendon@xxxxxxx>:
>> Hello,
>>
>> Using xAP Jabber, how can I formulate a message to encorporate
line
>> breaks?
>>
>> e.g.
>>
>> xap-header
>> {
>> v=12
>> hop=1
>> uid=FF456200
>> class=messenger.cmd
>> source=mi4.floor.AHSHASERVER
>> }
>> message.send
>> {
>> to=somechimp@xxxxxxx
>> body=Environment: <Info> Garage Temperature: 17.81 deg
C. RackTop
>> Temperature: 30.63 deg C. RackBottom Temperature: 28.34 deg C.
Outside
>> Temperature: 17.02 deg C.
>> }
>>
>>
>> I want the resulting IM message to look like:
>>
>> Environment: <Info>
>> Garage Temperature: 17.81 deg C.
>> RackTop Temperature: 30.63 deg C.
>> RackBottom Temperature: 28.34 deg C.
>> Outside Temperature: 17.02 deg C.
>>
>>
>> I've tried various combinations of <br> \r \n \\r\\n \r\n
etc etc but not
>> got it working yet - I'm sure I'm missing something simple???
>>
>>
>>
>> Thanks,
>>
>> Martyn
>>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
------------------------------------
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|