title: Could I send JSON data with LoRa and how?
body: <p>I've a SODAQ Mbili board with a LoRa bee. I've also a GPS sensor. Below you could find how I add the bee and the sensor.</p>
  <p><a href="https://i.stack.imgur.com/VfjG0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VfjG0.png" alt="" /></a></p>
  <p>On that board I make a JSON string with the GPS coordinates and I'll send that data over the LoRa network. But How could I do that.</p>
  <p>In the source code I've download they use next code:</p>
  <pre><code>LoRaModemMicrochip modem(&amp;MODEM_SERIAL, &amp;debugSerial);
  Device libTest(&amp;modem, &amp;debugSerial);
  
  void readGPSData() {
      GPSSensor gpsSens(4.3, 51.222, 15.5, 0);
      dumpSendResult(gpsSens);
  }
  
  void dumpSendResult(Sensor&amp; sns) {
      bool sendResult = libTest.send(sns, true);
  }
  </code></pre>
  <p>I'll change this code like code below so I could send my JSON data</p>
  <pre><code>LoRaModemMicrochip modem(&amp;MODEM_SERIAL, &amp;debugSerial);
  Device libTest(&amp;modem, &amp;debugSerial);
  
  void readGPSData() {
      String json = &quot;My JSON code&quot;;
      dumpJsonResult(json);
  }
  
  void dumpJsonResult(String&amp; text) {
      bool sendResult = libTest.send(text, true);
  }
  </code></pre>
  <p>But it gives me this error:</p>
  <blockquote>
  <p><strong><em>In function <code>void dumpJsonResult(String&amp;)</code>:</em></strong></p>
  <p><strong>Error:</strong> no matching function for call to <code>Device::send(String&amp;, bool)</code></p>
  <pre><code>bool sendResult = libTest.send(text, true);
                                           ^
  </code></pre>
  </blockquote>
  <p>Did you know how I could send JSON data to the LoRaWAN?</p>