Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Smart Bluetooth Forum Discussions

Anonymous
Not applicable

Hi everyone,

I want to send an array of data. Therefore I'm using the hello_sensor example which I changed a little bit. But I have no success. I only can send 1 Byte instead of 8. Does someone know how to send more than 1 Byte at once?

0 Likes
1 Solution
Anonymous
Not applicable

Hello Andre,

Look at the WICED Sense Example in the SDK 2.2.

We provided a document for the WICED Sense Firmware:

Introduction to Format of WICED Sensor Data

We show a bitmask demo in the code in the wiced_sense.h file:

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_ACCELEROMETER (1 << 0)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_GYRO (1 << 1)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_HUMIDITY (1 << 2)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_MAGNETOMETER (1 << 3)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_PRESSURE (1 << 4)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_TEMPERATURE (1 << 5)

#define WICED_SENSE_NUM_FINE_TIMEOUTS_TO_PLAY (5)

#define WICED_SENSE_LED1_DEFAULT_INIT_VALUE (0x0)

#define WICED_SENSE_LED1_DEFAULT_STEP (0x20)

#define WICED_SENSE_LED1_TOGGLE_VALUE_START (0x20)

#define WICED_SENSE_BATTERY_LEVEL_FULL (3000)

#define WICED_SENSE_BATTERY_LEVEL_EMPTY (1800)

Thanks

JT

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

Hello Andre,

Look at the WICED Sense Example in the SDK 2.2.

We provided a document for the WICED Sense Firmware:

Introduction to Format of WICED Sensor Data

We show a bitmask demo in the code in the wiced_sense.h file:

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_ACCELEROMETER (1 << 0)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_GYRO (1 << 1)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_HUMIDITY (1 << 2)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_MAGNETOMETER (1 << 3)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_PRESSURE (1 << 4)

#define WICED_SENSE_NOTIFICATION_HEADER_INCLUDES_TEMPERATURE (1 << 5)

#define WICED_SENSE_NUM_FINE_TIMEOUTS_TO_PLAY (5)

#define WICED_SENSE_LED1_DEFAULT_INIT_VALUE (0x0)

#define WICED_SENSE_LED1_DEFAULT_STEP (0x20)

#define WICED_SENSE_LED1_TOGGLE_VALUE_START (0x20)

#define WICED_SENSE_BATTERY_LEVEL_FULL (3000)

#define WICED_SENSE_BATTERY_LEVEL_EMPTY (1800)

Thanks

JT

0 Likes