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 2737add6819ac8d0f77e56eeb27b56cc9382616e
Author: Christopher Collins <ccoll...@apache.org>
AuthorDate: Fri Aug 11 10:51:42 2017 -0700

    nmxact - Make CoapServiceCfg fields public.
---
 nmxact/nmble/ble_util.go | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/nmxact/nmble/ble_util.go b/nmxact/nmble/ble_util.go
index d410ea5..d1d0bfb 100644
--- a/nmxact/nmble/ble_util.go
+++ b/nmxact/nmble/ble_util.go
@@ -683,36 +683,36 @@ func GattService() BleSvc {
 }
 
 type CoapServiceCfg struct {
-       x          *BleXport
-       svcUuid    BleUuid
-       reqChrUuid BleUuid
-       rspChrUuid BleUuid
-       enc        bool
-       auth       bool
-       resources  []oic.Resource
+       X          *BleXport
+       SvcUuid    BleUuid
+       ReqChrUuid BleUuid
+       RspChrUuid BleUuid
+       Enc        bool
+       Auth       bool
+       Resources  []oic.Resource
 }
 
 func GenCoapService(cfg CoapServiceCfg) (BleSvc, error) {
-       svr := NewBleOicSvr(cfg.x, cfg.svcUuid, cfg.rspChrUuid)
-       for _, r := range cfg.resources {
+       svr := NewBleOicSvr(cfg.X, cfg.SvcUuid, cfg.RspChrUuid)
+       for _, r := range cfg.Resources {
                if err := svr.AddResource(r); err != nil {
                        return BleSvc{}, err
                }
        }
 
        var secFlags BleChrFlags
-       if cfg.enc {
+       if cfg.Enc {
                secFlags |= BLE_GATT_F_WRITE_ENC
        }
-       if cfg.auth {
+       if cfg.Auth {
                secFlags |= BLE_GATT_F_WRITE_AUTHEN
        }
        svc := BleSvc{
-               Uuid:    cfg.svcUuid,
+               Uuid:    cfg.SvcUuid,
                SvcType: BLE_SVC_TYPE_PRIMARY,
                Chrs: []BleChr{
                        BleChr{
-                               Uuid:       cfg.reqChrUuid,
+                               Uuid:       cfg.ReqChrUuid,
                                Flags:      BLE_GATT_F_WRITE_NO_RSP | secFlags,
                                MinKeySize: 0,
                                AccessCb: func(access BleGattAccess) (uint8, 
[]byte) {
@@ -720,7 +720,7 @@ func GenCoapService(cfg CoapServiceCfg) (BleSvc, error) {
                                },
                        },
                        BleChr{
-                               Uuid:       cfg.rspChrUuid,
+                               Uuid:       cfg.RspChrUuid,
                                Flags:      BLE_GATT_F_NOTIFY,
                                MinKeySize: 0,
                                AccessCb:   nil,

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

Reply via email to