airprime readyagent.cp is there an API written


#1

For the following XML file provided in the SW sample

Does an oat API exist which will populate the data automatically or do we have to add the data ourselves in our custom Oat app?

<?xml version="1.0" encoding="ISO-8859-1" ?>
<app:capabilities
	xmlns:app="http://www.sierrawireless.com/airvantage/application/1.0">
	<data>
		<!--
			Ready Agent Configuration Tree 
		-->
		<encoding type="AWTDA2">
			<asset default-label="AirVantage Agent" id="@sys">
				<command path="ReadNode" default-label="Read Node">
          <parameter id="node" default-label="Node" default-value="config"/>
        </command>
        <node default-label="System" path="system">
          <node default-label="Cellular" path="cellular">
            <node default-label="Link" path="link">
              <variable default-label="Rssi" path="rssi" type="double"/>
              <variable default-label="IP Address" path="ip"/>
            </node>
          </node>
        </node>
        <node default-label="Configuration" path="config">
	            	<node default-label="Agent" path="agent">
	                	<setting path="assetport" default-label="Port" type="int" default-value="9999"/>
	                    <setting path="assetaddress" default-label="Address"/>
	                    <setting path="deviceId" default-label="Device ID"/>
	                    <setting path="persistlatency" default-label="Persistence latency" type="int" default-value="60"/>
	                    <setting path="persistsize" default-label="Persistence size" type="int"/>
	                </node>
	                <node default-label="Server" path="server">
	                    <setting path="url" default-label="URL" default-value="http://m2mop.net/device/com"/>
	                    <setting path="transportprotocol" default-label="Transport protocol" default-value="HTTP"/>
	                    <setting path="host" default-label="Host (only for specific transports like UDP/TCP)" />
	                    <setting path="port" default-label="Port (only for specific transports like UDP/TCP)" type="int" default-value="0"/>
	                    <setting path="retryperiod" default-label="Retry Period" type="int" default-value="60"/>
	                    <setting path="retrytimes" default-label="Retry Times" type="int" default-value="10"/>
	                    <setting path="proxy" default-label="Proxy URL" />
	                    <node default-label="Auto connection policy" path="autoconnect">
	                        <setting path="onboot" default-label="On boot" type="int" default-value="30"/>
	                        <setting path="ondemand" default-label="Latency before connection" type="int"/>
	                        <setting path="period" default-label="Period" type="int"/>
	                        <setting path="cron" default-label="Cron"/>
	                    </node>
	                </node>
	                <node default-label="Mediation protocol" path="mediation">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="false"/>
	                    <setting path="timeout" default-label="Timeout (in seconds)" type="int" default-value="5"/>
	                    <!-- FIXME need to create type tree ? -->
	<!--                <setting path="servers" default-label="Servers" type="tree"/> -->
	                    <!-- FIXME need to create type tree ? -->
	<!--                <setting path="pollingperiod" default-label="Polling period" type="tree"/> -->
						<node default-label="Servers" path="servers">
							<setting path="addr" default-label="Address" default-value="webplt-m2m.anyware-tech.com"/>
							<setting path="port" default-label="Port" type="int" default-value="2048"/>
						</node>
	                    <setting path="server.retries" default-label="Number of retries" type="int" default-value="5"/>
	                    <setting path="retrydelay" default-label="Retry delay (in seconds)" type="int" default-value="1800"/>
	                </node>
	                <node default-label="Shell" path="shell">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="true"/>
	                    <setting path="port" default-label="Port" type="int" default-value="2000"/>
                      <setting path="address" default-label="Address"/>
	                </node>
	                <node default-label="time" path="time">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="true"/>
	                    <setting path="timezone" default-label="Timezone (number of quarter to be added to UTC)" type="int" default-value="0"/>
	                    <setting path="dst" default-label="Daylight time saving" type="int" default-value="0"/>
	                    <setting path="ntpserver" default-label="NTP server" default-value="pool.ntp.org"/>
	                    <setting path="ntppolling" default-label="NTP server" default-value="0"/>
	                </node>
	                <node default-label="Modem" path="modem">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="true"/>
	                    <setting path="pin" default-label="SIM pin code" default-value=""/>
	                    <setting path="atport" default-label="AT Serial port"  default-value="/dev/ttyS0"/>
	                    <setting path="pppport" default-label="PPP Serial port" default-value="/dev/ttyS2"/>
	                    <setting path="sms" default-label="Export SMS API to assets" type="boolean" default-value="true"/>
	                </node>
	                <node default-label="Network connectivity" path="network">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="true"/>
	                    <setting path="initsignal" default-label="Init signal" default-value="Default"/>
	                    <setting path="maxfailure" default-label="Maximum failures on bearer selection" type="int"/>
	                    <setting path="maxconnectiontime" default-label="Maximum time to wait before going back to the preferred bearer" type="int" default-value="60"/>
	                    <setting path="smsfallback" default-label="Address to send outgoing SMS"/>
	                    <setting path="pinghost" default-label="Host for TCP ping"/>
	                    <setting path="pingport" default-label="Port for TCP ping" type="int"/>
	                    <setting path="retry" default-label="Default bearer number of retries" type="int" default-value="2"/>
	                    <setting path="retryperiod" default-label="Default bearer retry period" type="int" default-value="50"/>
	                    <!-- FIXME need to create type tree ? -->
	<!--                <setting path="bearerpriority" default-label="Supported bearers and ordered priority" type="tree"/> -->
	                    
	                    <node default-label="Bearer" path="bearer">
	                        <node default-label="GPRS" path="GPRS">
	                            <setting path="apn" default-label="APN" default-value="m2minternet"/>
	                            <setting path="retry" default-label="Number of retries" type="int" default-value="2"/>
	                            <setting path="retryperiod" default-label="Retry period" type="int" default-value="5"/>
	                            <setting path="automount" default-label="Automount" type="boolean" default-value="false"/>
	                            <setting path="nameserver1" default-label="Nameserver 1" default-value="8.8.8.8"/>
	                            <setting path="nameserver2" default-label="Nameserver 2" default-value="8.8.4.4"/>
	                            <setting path="username" default-label="Username"/>
	                            <setting path="password" default-label="Password"/>
	                        </node>
	                        <!-- FIXME to be done -->
	                        <node default-label="Ethernet" path="ETH">
	                            <setting path="retry" default-label="Number of retries" type="int" default-value="2"/>
	                            <setting path="retryperiod" default-label="Retry period" type="int" default-value="5"/>
	                            <setting path="mode" default-label="Mode" default-value="dhcp"/>
	                            <setting path="address" default-label="IP Address"/>
	                            <setting path="gateway" default-label="Gateway Address"/>
	                            <setting path="netmask" default-label="Netmask"/>
	                            <setting path="automount" default-label="Automount" type="boolean" default-value="false"/>
	                            <setting path="nameserver1" default-label="Nameserver 1" default-value="8.8.8.8"/>
	                            <setting path="nameserver2" default-label="Nameserver 2" default-value="8.8.4.4"/>
	                            <setting path="ip_setdns" default-label="IP set DNS" type="boolean" default-value="false"/>
	                        </node>
	                    </node>
	                </node>
	                <node default-label="Device Management" path="device">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="true"/>
	                    <node path="tcprconnect" default-label="tcprconnect">
	                    	<setting path="addr" default-label="Address"/>
	                    	<setting path="port" default-label="Port" type="int"/>
	                    </node>
	                </node>
	                <node default-label="Logging framework" path="log">
	                    <setting path="defaultlevel" default-label="Log level" default-value="INFO">
	                        <constraints>
	                            <enumeration>
	                            	<value default-label="None">NONE</value>
	                            	<value default-label="Error">ERROR</value>
	                            	<value default-label="Warning">WARNING</value>
	                            	<value default-label="Info">INFO</value>
	                            	<value default-label="Detail">DETAIL</value>
	                            	<value default-label="Debug">DEBUG</value>
	                            	<value default-label="All">ALL</value>
	                            </enumeration>
	                        </constraints>
	                    </setting>
	                    <!-- FIXME how can we define per module ? tree ? -->
	                    <setting path="enablecolors" default-label="Enable colors" type="boolean"/>
	                    <setting path="format" default-label="Format"/>
	                    <setting path="timestampformat" default-label="Timestamp format" default-value="%F %T"/>
	                    <node default-label="Policy" path="policy">
	                        <setting path="name" default-label="Policy name">
	                            <constraints>
	                            	<enumeration>
	                                	<value default-label="Buffered All">buffered_all</value>
	                                	<value default-label="Sole">sole</value>
	                                	<value default-label="Context">context</value>
	                                </enumeration>
	                            </constraints>
	                        </setting>
	                        <node path="params" default-label="params">
		                        <setting path="level" default-label="Trigger level">
		                            <constraints>
		                            	<enumeration>
		                                	<value default-label="None">NONE</value>
		                                	<value default-label="Error">ERROR</value>
		                                	<value default-label="Warning">WARNING</value>
		                                	<value default-label="Info">INFO</value>
		                                	<value default-label="Detail">DETAIL</value>
		                                	<value default-label="Debug">DEBUG</value>
		                                	<value default-label="All">ALL</value>
		                                </enumeration>
		                            </constraints>
		                        </setting>
		                        <setting path="ramlogger.size" default-label="RAM Logger Size"/>
		                        <setting path="flashlogger.size" default-label="Flash Logger Size"/>
	                        </node>
	                        <setting path="ftpuser" default-label="FTP User"/>
	                        <setting path="ftppwd" default-label="FTP Password"/>
	                    </node>
	                </node>
	                <node default-label="Application container" path="appcon">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="false"/>
                      <setting path="std" default-label="Standard Application Mgt" type="boolean" default-value="true"/>
	                    <setting path="stdport" default-label="TCP port to connect appmon daemon" type="int" default-value="4242"/>
	                </node>
	                <node default-label="Monitoring" path="monitoring">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="false"/>
	                    <setting path="debug" default-label="Give access to the global environment into the monitoring scripts" type="boolean" default-value="true"/>
	                </node>
	                <node default-label="Lua RPC server" path="rpc">
	                    <setting path="activate" default-label="Activate" type="boolean" default-value="true"/>
	                    <setting path="address" default-label="Address to bind the server socket to" default-value="localhost"/>
	                    <setting path="port" default-label="Port" type="int" default-value="1999"/>
	                </node>
	        	</node>
			</asset>
		</encoding>
	</data>
</app:capabilities>

#2

Hi,

No there are no APIs Available.

Thanks