4 Replies Latest reply on May 9, 2018 5:54 AM by jecoc_2594171

    Deprecated bt_smartbridge app (Replaced by Bluetooth Internet Gateway)

      Hello,

       

      I used in version 5.0 of wiced bt_smartbridge function for my BLE application.

      I read it's deprecated on WICED 6.x, can you tell me if there is something similar to demo/bt_smartbridge to devellop a new program ? (Scan and connect to BLE devices) ?

       

      Thank you.

       

        • 1. Re: Deprecated bt_smartbridge app (Replaced by Bluetooth Internet Gateway)
          MichaelF_56

          Bluetooth Internet Gateway ("BIG") is the replacement: /43xxx_Wi-Fi/apps/demo/bt_internet_gateway

          • 2. Re: Deprecated bt_smartbridge app (Replaced by Bluetooth Internet Gateway)

            Thanks you mifo,

             

            I tested this demo but I have it does not work properly:

             

            With curl or Postman, only the test works :

             

            GET http://<gateway>/gap/nodes?active=1 : SUCCESS

             

            I tried the following commands but it does not work

             

            GET http://<gateway>/gap/nodes?enable=1 : FAILED

            GET http://<gateway>/gap/nodes/<node> : FAILED

             

            connect,... also (gatt commands).

             

            the commands block without any answer (see the following lines) :

             

            command : curl -v -X GET "http://xxx.xxx.xxx.xxx (IP ADDRESS)/gap/nodes?enable=1

             

            Note: Unnecessary use of -X or --request, GET is already inferred.                                                 

            * Trying xxx.xxx.xxx.xxx (IP ADDRESS)...                                                                                         

            * TCP_NODELAY set                                                                                                   

            * Connected to xxx.xxx.xxx.xxx (IP ADDRESS) port 80 (#0)                                                           

            > GET /gap/nodes?enable=1 HTTP/1.1                                                                                  

            > Host: xxx.xxx.xxx.xxx (IP ADDRESS)                                                                                              

            > User-Agent: curl/7.59.0                                                                                           

            > Accept: */*              

                           

            command : curl -v GET "http://xxx.xxx.xxx.xxx (IP ADDRESS)/gap/nodes?enable=1

             

            * Rebuilt URL to: GET/                                                                                              

            * Could not resolve host: GET                                                                                      

            * Closing connection 0                                                                                              

            curl: (6) Could not resolve host: GET                                                                              

            *   Trying xxx.xxx.xxx.xxx (IP ADDRESS)..                                                                                        

            * TCP_NODELAY set                                                                                                   

            * Connected to xxx.xxx.xxx.xxx (IP ADDRESS) (xxx.xxx.xxx.xxx (IP ADDRESS)) port 80 (#1)                                                           

            > GET /gap/nodes?enable=1 HTTP/1.1                                                                                  

            > Host: xxx.xxx.xxx.xxx (IP ADDRESS)                                                                                              

            > User-Agent: curl/7.59.0                                                                                           

            > Accept: */*                                                                                                       

                

            What can be the causes?

             

            Can you help me ?

            • 3. Re: Deprecated bt_smartbridge app (Replaced by Bluetooth Internet Gateway)
              AxLi_1746341

              jerome_2594171 wrote:

                             

              command : curl -v GET "http://xxx.xxx.xxx.xxx (IP ADDRESS)/gap/nodes?enable=1

               

              * Rebuilt URL to: GET/                                                                                              

              * Could not resolve host: GET                                                                                      

              * Closing connection 0                                                                                              

              curl: (6) Could not resolve host: GET                                                                             

              Obviously, the command syntax is wrong. You are connecting to the host "GET".

              • 4. Re: Deprecated bt_smartbridge app (Replaced by Bluetooth Internet Gateway)

                Yes for this command : curl -v GET "http://xxx.xxx.xxx.xxx (IP ADDRESS)/gap/nodes?enable=1

                because I remove -X before GET.

                 

                But for this command : curl -v -X GET "http://xxx.xxx.xxx.xxx (IP ADDRESS)/gap/nodes?enable=1

                The good one doesn't work !

                 

                I followed this tutorial :

                BIG RESTful Smart Server Demo