<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentarios en: Contactar</title>
	<atom:link href="http://kodegeek.com/blog/contactar/feed/" rel="self" type="application/rss+xml" />
	<link>http://kodegeek.com/blog</link>
	<description>Programación, fitness, interés geek</description>
	<lastBuildDate>Sun, 29 Apr 2012 17:32:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Por: +4407553477995</title>
		<link>http://kodegeek.com/blog/contactar/comment-page-1/#comment-2796</link>
		<dc:creator>+4407553477995</dc:creator>
		<pubDate>Sun, 10 Oct 2010 09:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://kodegeek.com/blog/?page_id=1370#comment-2796</guid>
		<description>Thank you, well like i said i am trying to find out where the datamsg data are written to or stored to. using the examples on the senseandsend, i adapted it to use the temperature sensor instead of the electric potential. 

here it is maybe you can spot what i am doing wrong
i am unfortunately still a novice at this code business

import java.io.Serializable;

import static javax.measure.unit.SI.CELSIUS;

import javax.measure.Measurable;
import javax.measure.quantity.Temperature;

import com.sentilla.net.Mac64Address;
import com.sentilla.net.Sender;
import com.sentilla.net.SenderDriver;
import com.sentilla.system.Leds;
import com.sentilla.system.LedsDriver;
import com.sentilla.system.PropertyDriver;
import com.sentilla.system.Sensor;
import com.sentilla.system.SensorDriver;



public class MoteTempSend {
   
    public static class DataMessage implements Serializable{
       
        public long moteid;
        public short count;
        public Measurable temprature;
       
    }
            public static void motemain() throws InterruptedException{
               
                //Use Driver factories to get the device ID and to create device
                // instances for Leds, Sender, and various Sensors.
                long id = Mac64Address.getLocalAddress().longValue();
                Leds leds = LedsDriver.create();
               
                //create a sender
                Sender sender = SenderDriver.create(&quot;local&quot;);
               
                //create a temprature sensor
                Sensor temprature = SensorDriver.create(&quot;temp&quot;, Temperature.class);
                
               
               
                //Allocate a local counter and an instance of the message data to send.
                short count = 0;
                DataMessage datmg = new DataMessage();
               
               
                    while(true){
                       
                         //Increment the counter and render it to the LEDs.
                          count++;
                          leds.set(count);
                          Thread.sleep(3000);
                         
                          //Prepare datamsg with the moteId, count,
                          //and temp readings.
                          datmg.moteid = id;
                          datmg.count = count;
                          datmg.temprature = temprature.read();
                         
                          //Send datamsg.
                          sender.send(datmg);

                          
                          System.out.println(&quot;   &quot; +datmg);
                    }
               
               
               
            }
}

Thank you</description>
		<content:encoded><![CDATA[<p>Thank you, well like i said i am trying to find out where the datamsg data are written to or stored to. using the examples on the senseandsend, i adapted it to use the temperature sensor instead of the electric potential. </p>
<p>here it is maybe you can spot what i am doing wrong<br />
i am unfortunately still a novice at this code business</p>
<p>import java.io.Serializable;</p>
<p>import static javax.measure.unit.SI.CELSIUS;</p>
<p>import javax.measure.Measurable;<br />
import javax.measure.quantity.Temperature;</p>
<p>import com.sentilla.net.Mac64Address;<br />
import com.sentilla.net.Sender;<br />
import com.sentilla.net.SenderDriver;<br />
import com.sentilla.system.Leds;<br />
import com.sentilla.system.LedsDriver;<br />
import com.sentilla.system.PropertyDriver;<br />
import com.sentilla.system.Sensor;<br />
import com.sentilla.system.SensorDriver;</p>
<p>public class MoteTempSend {</p>
<p>    public static class DataMessage implements Serializable{</p>
<p>        public long moteid;<br />
        public short count;<br />
        public Measurable temprature;</p>
<p>    }<br />
            public static void motemain() throws InterruptedException{</p>
<p>                //Use Driver factories to get the device ID and to create device<br />
                // instances for Leds, Sender, and various Sensors.<br />
                long id = Mac64Address.getLocalAddress().longValue();<br />
                Leds leds = LedsDriver.create();</p>
<p>                //create a sender<br />
                Sender sender = SenderDriver.create(&#8220;local&#8221;);</p>
<p>                //create a temprature sensor<br />
                Sensor temprature = SensorDriver.create(&#8220;temp&#8221;, Temperature.class);</p>
<p>                //Allocate a local counter and an instance of the message data to send.<br />
                short count = 0;<br />
                DataMessage datmg = new DataMessage();</p>
<p>                    while(true){</p>
<p>                         //Increment the counter and render it to the LEDs.<br />
                          count++;<br />
                          leds.set(count);<br />
                          Thread.sleep(3000);</p>
<p>                          //Prepare datamsg with the moteId, count,<br />
                          //and temp readings.<br />
                          datmg.moteid = id;<br />
                          datmg.count = count;<br />
                          datmg.temprature = temprature.read();</p>
<p>                          //Send datamsg.<br />
                          sender.send(datmg);</p>
<p>                          System.out.println(&#8221;   &#8221; +datmg);<br />
                    }</p>
<p>            }<br />
}</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: josevnz</title>
		<link>http://kodegeek.com/blog/contactar/comment-page-1/#comment-2794</link>
		<dc:creator>josevnz</dc:creator>
		<pubDate>Sat, 09 Oct 2010 20:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://kodegeek.com/blog/?page_id=1370#comment-2794</guid>
		<description>Sure. Where are you stuck at? (you need t be more specific if you want to get any help)</description>
		<content:encoded><![CDATA[<p>Sure. Where are you stuck at? (you need t be more specific if you want to get any help)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: +4407553477995</title>
		<link>http://kodegeek.com/blog/contactar/comment-page-1/#comment-2793</link>
		<dc:creator>+4407553477995</dc:creator>
		<pubDate>Sat, 09 Oct 2010 08:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://kodegeek.com/blog/?page_id=1370#comment-2793</guid>
		<description>hello i am a student working with the sentilla perk and i would like help in using the motes to read temperature. i very basic skills in java programming</description>
		<content:encoded><![CDATA[<p>hello i am a student working with the sentilla perk and i would like help in using the motes to read temperature. i very basic skills in java programming</p>
]]></content:encoded>
	</item>
</channel>
</rss>

