You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/08/15 00:30:05 UTC

[mynewt-newtmgr] branch master updated (5674cdd -> 13304eb)

This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git.


    from 5674cdd  newtmgr - Remove OS-specific vendored packages.
     new f99d087  nmxact - write BLE command should listen for ack.
     new 09a3fc3  nmxact - Fix typo in Iotivity rsp chr UUID.
     new 13304eb  newtmgr - revendor

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 newtmgr/Godeps/Godeps.json                         | 72 +++++++++++-----------
 .../newtmgr/nmxact/bledefs/bledefs.go              |  2 +-
 .../newtmgr/nmxact/nmble/ble_act.go                |  4 +-
 .../newtmgr/nmxact/udp/udp_oic_sesn.go             | 28 ++++++++-
 nmxact/bledefs/bledefs.go                          |  2 +-
 nmxact/nmble/ble_act.go                            |  4 +-
 6 files changed, 67 insertions(+), 45 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" <co...@mynewt.apache.org>'].

[mynewt-newtmgr] 03/03: newtmgr - revendor

Posted by cc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git

commit 13304ebf64b2c57d54430230efcaffca3ec2fa0d
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Fri Aug 11 11:58:41 2017 -0700

    newtmgr - revendor
---
 newtmgr/Godeps/Godeps.json                         | 72 +++++++++++-----------
 .../newtmgr/nmxact/bledefs/bledefs.go              |  2 +-
 .../newtmgr/nmxact/nmble/ble_act.go                |  4 +-
 .../newtmgr/nmxact/udp/udp_oic_sesn.go             | 28 ++++++++-
 4 files changed, 65 insertions(+), 41 deletions(-)

diff --git a/newtmgr/Godeps/Godeps.json b/newtmgr/Godeps/Godeps.json
index ce5ab65..d109d71 100644
--- a/newtmgr/Godeps/Godeps.json
+++ b/newtmgr/Godeps/Godeps.json
@@ -107,93 +107,93 @@
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newt/util",
-			"Comment": "mynewt_1_0_1_tag-26-gd70e83c",
-			"Rev": "d70e83caba3debbd8eff933308d619fe67c51dce"
+			"Comment": "mynewt_1_0_1_tag-31-gf041162",
+			"Rev": "f0411626b4e579bdf6815553d6d1aea661389aea"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newt/util/unixchild",
-			"Comment": "mynewt_1_0_1_tag-26-gd70e83c",
-			"Rev": "d70e83caba3debbd8eff933308d619fe67c51dce"
+			"Comment": "mynewt_1_0_1_tag-31-gf041162",
+			"Rev": "f0411626b4e579bdf6815553d6d1aea661389aea"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newt/viper",
-			"Comment": "mynewt_1_0_1_tag-26-gd70e83c",
-			"Rev": "d70e83caba3debbd8eff933308d619fe67c51dce"
+			"Comment": "mynewt_1_0_1_tag-31-gf041162",
+			"Rev": "f0411626b4e579bdf6815553d6d1aea661389aea"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newt/yaml",
-			"Comment": "mynewt_1_0_1_tag-26-gd70e83c",
-			"Rev": "d70e83caba3debbd8eff933308d619fe67c51dce"
+			"Comment": "mynewt_1_0_1_tag-31-gf041162",
+			"Rev": "f0411626b4e579bdf6815553d6d1aea661389aea"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/adv",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/bledefs",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/mgmt",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/nmble",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/nmp",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/nmserial",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/nmxutil",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/oic",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/omp",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/scan",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/sesn",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/udp",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/xact",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		},
 		{
 			"ImportPath": "mynewt.apache.org/newtmgr/nmxact/xport",
-			"Comment": "mynewt_1_1_0_tag-31-gf0af75a",
-			"Rev": "f0af75a43db81b781f26f3ef05d7c81322ec5a44"
+			"Comment": "mynewt_1_1_0_tag-36-ge1167f6",
+			"Rev": "e1167f696197169b49b4dfba4bc38d67502051de"
 		}
 	]
 }
diff --git a/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/bledefs/bledefs.go b/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/bledefs/bledefs.go
index 6b31ca2..e6bb5b9 100644
--- a/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/bledefs/bledefs.go
+++ b/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/bledefs/bledefs.go
@@ -35,7 +35,7 @@ const CccdUuid = 0x2902
 
 const IotivitySvcUuid = "ade3d529-c784-4f63-a987-eb69f70ee816"
 const IotivityReqChrUuid = "ad7b334f-4637-4b86-90b6-9d787f03d218"
-const IotivityRspChrUuid = "ad7b334f-4637-4b86-90b6-9d787f03d218"
+const IotivityRspChrUuid = "e9241982-4580-42c4-8831-95048216b256"
 
 const UnauthSvcUuid = "0c08c213-98ed-4e43-a499-7e1137c39567"
 const UnauthReqChrUuid = "69b8a928-2ab2-487b-923e-54ce53a18bc1"
diff --git a/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/nmble/ble_act.go b/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/nmble/ble_act.go
index 679be3c..0d80957 100644
--- a/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/nmble/ble_act.go
+++ b/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/nmble/ble_act.go
@@ -384,11 +384,9 @@ func write(x *BleXport, bl *Listener, r *BleWriteReq) error {
 				bl.Acked = true
 				if msg.Status != 0 {
 					return StatusError(MSG_OP_RSP, rspType, msg.Status)
-				} else {
-					return nil
 				}
 
-			case *BleDiscChrEvt:
+			case *BleWriteAckEvt:
 				switch msg.Status {
 				case 0:
 					return nil
diff --git a/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/udp/udp_oic_sesn.go b/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/udp/udp_oic_sesn.go
index 9244048..c6a5400 100644
--- a/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/udp/udp_oic_sesn.go
+++ b/newtmgr/vendor/mynewt.apache.org/newtmgr/nmxact/udp/udp_oic_sesn.go
@@ -181,5 +181,31 @@ func (uos *UdpOicSesn) PutResourceOnce(resType sesn.ResourceType,
 	uri string, value []byte,
 	opt sesn.TxOptions) (coap.COAPCode, error) {
 
-	return 0, fmt.Errorf("UdpOicSesn.PutResourceOnce() unsupported")
+	token := nmxutil.NextToken()
+
+	ol, err := uos.d.AddOicListener(token)
+	if err != nil {
+		return 0, err
+	}
+	defer uos.d.RemoveOicListener(token)
+
+	req, err := oic.EncodePut(false, uri, token, value)
+	if err != nil {
+		return 0, err
+	}
+
+	if _, err := uos.conn.WriteToUDP(req, uos.addr); err != nil {
+		return 0, err
+	}
+
+	for {
+		select {
+		case err := <-ol.ErrChan:
+			return 0, err
+		case rsp := <-ol.RspChan:
+			return rsp.Code(), nil
+		case <-ol.AfterTimeout(opt.Timeout):
+			return 0, nmxutil.NewRspTimeoutError("OIC timeout")
+		}
+	}
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" <co...@mynewt.apache.org>.

[mynewt-newtmgr] 02/03: nmxact - Fix typo in Iotivity rsp chr UUID.

Posted by cc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git

commit 09a3fc37422db8c83f59b0f41ea9c10d997a03f8
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Mon Aug 14 17:24:25 2017 -0700

    nmxact - Fix typo in Iotivity rsp chr UUID.
---
 nmxact/bledefs/bledefs.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nmxact/bledefs/bledefs.go b/nmxact/bledefs/bledefs.go
index 6b31ca2..e6bb5b9 100644
--- a/nmxact/bledefs/bledefs.go
+++ b/nmxact/bledefs/bledefs.go
@@ -35,7 +35,7 @@ const CccdUuid = 0x2902
 
 const IotivitySvcUuid = "ade3d529-c784-4f63-a987-eb69f70ee816"
 const IotivityReqChrUuid = "ad7b334f-4637-4b86-90b6-9d787f03d218"
-const IotivityRspChrUuid = "ad7b334f-4637-4b86-90b6-9d787f03d218"
+const IotivityRspChrUuid = "e9241982-4580-42c4-8831-95048216b256"
 
 const UnauthSvcUuid = "0c08c213-98ed-4e43-a499-7e1137c39567"
 const UnauthReqChrUuid = "69b8a928-2ab2-487b-923e-54ce53a18bc1"

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" <co...@mynewt.apache.org>.

[mynewt-newtmgr] 01/03: nmxact - write BLE command should listen for ack.

Posted by cc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git

commit f99d0877d12d9412007238a4f5ceaaeca8e9a77a
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Fri Aug 11 11:58:15 2017 -0700

    nmxact - write BLE command should listen for ack.
---
 nmxact/nmble/ble_act.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/nmxact/nmble/ble_act.go b/nmxact/nmble/ble_act.go
index 679be3c..0d80957 100644
--- a/nmxact/nmble/ble_act.go
+++ b/nmxact/nmble/ble_act.go
@@ -384,11 +384,9 @@ func write(x *BleXport, bl *Listener, r *BleWriteReq) error {
 				bl.Acked = true
 				if msg.Status != 0 {
 					return StatusError(MSG_OP_RSP, rspType, msg.Status)
-				} else {
-					return nil
 				}
 
-			case *BleDiscChrEvt:
+			case *BleWriteAckEvt:
 				switch msg.Status {
 				case 0:
 					return nil

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" <co...@mynewt.apache.org>.