You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/03/23 15:58:01 UTC

[GitHub] sterlinghughes closed pull request #72: mtech_lora; flush deveui out queue on close. LNS queue eventually

sterlinghughes closed pull request #72: mtech_lora; flush deveui out queue on close. LNS queue eventually
URL: https://github.com/apache/mynewt-newtmgr/pull/72
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/nmxact/mtech_lora/mtech_lora_sesn.go b/nmxact/mtech_lora/mtech_lora_sesn.go
index 09ad4a5..407fedc 100644
--- a/nmxact/mtech_lora/mtech_lora_sesn.go
+++ b/nmxact/mtech_lora/mtech_lora_sesn.go
@@ -135,6 +135,7 @@ func (s *LoraSesn) Close() error {
 	close(s.stopChan)
 	s.listener.Close()
 	s.wg.Wait()
+	s.xport.Tx([]byte(fmt.Sprintf("lora/%s/flush", DenormalizeAddr(s.cfg.Lora.Addr))))
 	s.stopChan = nil
 	s.txvr = nil
 
@@ -219,7 +220,7 @@ func (s *LoraSesn) sendFragments(b []byte) error {
 
 		var outData bytes.Buffer
 
-		outData.Write([]byte(fmt.Sprintf("lora/%s/down %s\n",
+		outData.Write([]byte(fmt.Sprintf("lora/%s/down %s",
 			DenormalizeAddr(s.cfg.Lora.Addr), payload)))
 		err := s.xport.Tx(outData.Bytes())
 		if err != nil {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services