Initial support connecting/reading BLuetooth Low Energy-device:

Commit reads temperature-sensor from TI-sensortag
Ble_test gets now BT-address as an argument. Also some cosmetic changes to the code done.
ble: provide ble address as argument using switch "-a"

removed hardcoded value

Signed-off-by: Torsten Lund <lund.torsten@gmail.com>

Conflicts:
	src/ble/ble_test.c
Add some error-handlings socket-connect, -read and -write routines
Added update_loop() for handling connection-establishment to BLE-device
and reading of temperature-sensor frequently for demo-purpose.
Handles also re-readings and reconnections in error-cases.
Fixed "no route to host"

Starting the ble_demo while the BLE sensortag is off resulted in a "no
route to host" error and it would deadlock because the routing is never
updated. The same deadlock would present itself if the BLE sensortag is
connected at first but then turned off/on at any later time. To solve
this a routing update is introduced by adding a LE scan just before
every connection attempt.
Minor cleanup
Fixed error in regular expression

Erroneously allowed format: XX-XX-XX-XX-XX-XX
only XX:XX:XX:XX:XX:XX is allowed

Signed-off-by: Torsten Lund <lund.torsten@gmail.com>
Initial support connecting/reading BLuetooth Low Energy-device:

Commit reads temperature-sensor from TI-sensortag
Ble_test gets now BT-address as an argument. Also some cosmetic changes to the code done.
ble: provide ble address as argument using switch "-a"

removed hardcoded value

Signed-off-by: Torsten Lund <lund.torsten@gmail.com>

Conflicts:
	src/ble/ble_test.c
Add some error-handlings socket-connect, -read and -write routines
Added update_loop() for handling connection-establishment to BLE-device
and reading of temperature-sensor frequently for demo-purpose.
Handles also re-readings and reconnections in error-cases.
Fixed "no route to host"

Starting the ble_demo while the BLE sensortag is off resulted in a "no
route to host" error and it would deadlock because the routing is never
updated. The same deadlock would present itself if the BLE sensortag is
connected at first but then turned off/on at any later time. To solve
this a routing update is introduced by adding a LE scan just before
every connection attempt.
Minor cleanup
Fixed error in regular expression

Erroneously allowed format: XX-XX-XX-XX-XX-XX
only XX:XX:XX:XX:XX:XX is allowed

Signed-off-by: Torsten Lund <lund.torsten@gmail.com>
Merge branch 'ble_for_TI_sensortag' of github.com:ixonos/libsensact into ble_for_TI_sensortag
ble: moved address validation to ble component

It should not be located in test application, due to
generic usage

Signed-off-by: Torsten Lund <lund.torsten@gmail.com>
Added demo code
Added demo code (hack)