wikiroute

networking recipes

User Tools

Site Tools


esib_iot_challenge

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
esib_iot_challenge [2017/05/17 17:32] – [3. Devices] sameresib_iot_challenge [2017/05/17 17:42] – [3. Devices] samer
Line 54: Line 54:
 </WRAP> </WRAP>
  
 +Download the example sketch and open it with Arduino IDE. Now you should configure your device with the same identifiers as in the backend. 
  
-Download the example sketchopen it with Arduino IDE and compile it.+<WRAP center round tip 100%> 
 +Note that the device and application identifiers should be in little endian format. The application key is in big endian format. For example,  
 +''0xCA, 0xDE, 0xE2, 0xAF, 0x1C, 0xDE, 0xAD, 0x0B'' 
 +</WRAP> 
 + 
 + 
 +<code c++> 
 +static const u1_t PROGMEM APPEUI[8]= { }; 
 +void os_getArtEui (u1_t* buf) { memcpy_P(buf, APPEUI, 8);} 
 + 
 +// This should also be in little endian format, see above. 
 +static const u1_t PROGMEM DEVEUI[8]= { }; 
 +void os_getDevEui (u1_t* buf) { memcpy_P(buf, DEVEUI, 8);} 
 + 
 +static const u1_t PROGMEM APPKEY[16] = { }; 
 +void os_getDevKey (u1_t* buf) {  memcpy_P(buf, APPKEY, 16);} 
 +</code>
    
 You can download the following sketch {{ :test-loraserver-comb-loraserver-dragino.zip |}} and modify it according to your preferences. Below you can find somme commented extracts of the sketch. You can download the following sketch {{ :test-loraserver-comb-loraserver-dragino.zip |}} and modify it according to your preferences. Below you can find somme commented extracts of the sketch.
esib_iot_challenge.txt · Last modified: 2021/08/28 09:53 by samer