Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AS7000 BNO055 NNN50_WIFI_API
Revision 15:d22f450bb909, committed 2017-06-01
- Comitter:
- sog_yang
- Date:
- Thu Jun 01 08:15:15 2017 +0000
- Parent:
- 14:eacafd9e019f
- Commit message:
- Update for DEBUG mode values.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jun 01 07:43:55 2017 +0000
+++ b/main.cpp Thu Jun 01 08:15:15 2017 +0000
@@ -135,10 +135,10 @@
while (true) {
wait_ms(2);
- __disable_irq(); // Disable Interrupts
+ //__disable_irq(); // Disable Interrupts
imu.get_angles(); //query the i2c device
hrm.hr_only();
- __ensable_irq();// Enable Interrupts
+ // __enable_irq();// Enable Interrupts
wait_ms(8);
if (BLE_RX_CMD != 0xA1) {
if (i > 40){
@@ -164,7 +164,7 @@
isConnect = false;
BLE_RX_CMD = 0xFF;
#if DEBUG_LOG
- pc.printf("Unable to connect to (%s) on port (%d)\n", ECHO_SERVER_ADDRESS, ECHO_SERVER_PORT);
+ pc.printf("Unable to connect to (%s) on port (%d)\n", TCP_SERVER_ADDRESS, TCP_SERVER_PORT);
#endif
ADV_manuf[4] = 0xCF;
BLE_RX_CMD = 0xFF;
@@ -172,7 +172,7 @@
isConnect = true;
ADV_manuf[4] = 0xF1;
#if DEBUG_LOG
- pc.printf("Connected to Server at %s\n",ECHO_SERVER_ADDRESS);
+ pc.printf("Connected to Server at %s\n",TCP_SERVER_ADDRESS);
#endif
}
}
@@ -242,7 +242,7 @@
if (isWiFiEnable == true) {
if (sock_tcp.connect(TCP_SERVER_ADDRESS, TCP_SERVER_PORT) < 0) {
#if DEBUG_LOG
- pc.printf("Unable to connect to (%s) on port (%d)\n", ECHO_SERVER_ADDRESS, ECHO_SERVER_PORT);
+ pc.printf("Unable to connect to (%s) on port (%d)\n", TCP_SERVER_ADDRESS, TCP_SERVER_PORT);
#endif
sock_tcp.close();
ADV_manuf[4] = 0xCF;
@@ -251,7 +251,7 @@
isCloudFiling = false;
ADV_manuf[4] = 0xF1;
#if DEBUG_LOG
- pc.printf("Connected to Server at %s\n",ECHO_SERVER_ADDRESS);
+ pc.printf("Connected to Server at %s\n",TCP_SERVER_ADDRESS);
#endif
}
}