[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers.
You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020
Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
XML FormattedTextScreen
|
Author |
Message |
TekMason
Junior Member
Posts: 5
Joined: Dec 2013
|
XML FormattedTextScreen
I am working on a Weather application to use on T38's (38.70.0.132 Firmware) but I am struggling with the FormattedTextScreen object.
This code will only display 2 lines of text:
<YealinkIPPhoneFormattedTextScreen>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon. Wind southwest 30 km/h. High plus 4.</Line>
</YealinkIPPhoneFormattedTextScreen>
I even tried the sample code on page 17 of the XML Browser Developer's Guide and just like the screen shot there "Header Line3" is not display on the phone.
Any assistance would be appreciated.
Thx,
TekMason
(This post was last modified: 01-13-2014 03:25 PM by TekMason.)
|
|
01-13-2014 03:03 PM |
|
TekMason
Junior Member
Posts: 5
Joined: Dec 2013
|
RE: XML FormattedTextScreen
Thanks Yealink Support.
The code you posted didn't quite work but it was close enough to send me down the right path.
This is the working code:
-------------------------------------------------
<YealinkIPPhoneFormattedTextScreen
doneAction="http://10.1.0.105/menu.php"
Beep="yes"
Timeout="60"
LockIn="no">
<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h. High plus 4.</Line>
</Scroll>
</YealinkIPPhoneFormattedTextScreen>
-------------------------------------------------
There were 2 things in the code you posted that the T38G did not like and caused it to throw a File format errror! message.
1. <?xml version="1.0" encoding="ISO-8859-1"?>
2. The closing scroll tag was lower case, </scroll>. It must be </Scroll>. The T38G is very particular about the XML it receives and case matters.
It is bizarre that the Yealink will only display 2 lines unless they are enclosed within scroll tags. This presents another issue that I will bring up in a new topic.
TekMason
(This post was last modified: 01-17-2014 03:31 AM by TekMason.)
|
|
01-17-2014 03:05 AM |
|
User(s) browsing this thread: 1 Guest(s)