mirror of
https://github.com/openharmony/device_board_bearpi.git
synced 2026-07-01 21:44:37 -04:00
!21 fix document link invalidation and some typos
Merge pull request !21 from rtos-lover/bearpi
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
### 资料导航
|
||||
| No | 类别 | 路径 |
|
||||
| :----: | ---- | ------------------------------------------------------------ |
|
||||
| 1 | 快速上手教程 | [docs/docs/quick-start](docs/docs/quick-start/BearPi-HM_Nano十分钟上手.md) |
|
||||
| 1 | 快速上手教程 | [docs/quick-start](docs/quick-start/BearPi-HM_Nano十分钟上手.md) |
|
||||
| 2 | 案例代码列表 | [app](app/README.md) |
|
||||
| 3 | 视频学习地址 | [B站](https://www.bilibili.com/video/BV1tv411b7SA?p=1) |
|
||||
|
||||
## 一、BearPi-HM Nano 开发板介绍
|
||||
|
||||
小熊派·季[(BearPi-HM Nano)](https://item.taobao.com/item.htm?id=633296694816)是一款由小熊派专为OpenHarmony系统打造的开发板,如下图所示
|
||||
小熊派·季[(BearPi-HM Nano)](https://item.taobao.com/item.htm?id=633296694816)是一款由小熊派专为OpenHarmony系统打造的开发板,如下图所示。
|
||||
|
||||
* 采用IoTCluB的E53接口标准,可接入所有的[E53案例扩展板](https://shop336827451.taobao.com/category-1488778768.htm)。
|
||||
* 主控为WiFi SoC Hi3861,160MHz主频,SRAM 352KB、ROM 288KB、2M Flash。
|
||||
|
||||
@@ -24,7 +24,7 @@ uint8_t composeRtdText(const NDEFDataStr *ndef, NDEFRecordStr *ndefRecord, uint8
|
||||
memcpy_s(&I2CMsg[TYPE_PAYLOAD], payLoadLen, &ndefRecord->type.typePayload.text, payLoadLen);
|
||||
|
||||
ndefRecord->payloadLength = ndef->rtdPayloadlength + payLoadLen; // added the typePayload
|
||||
I2CMsg[PALOAD_LENGTH] = ndefRecord->payloadLength;
|
||||
I2CMsg[PAYLOAD_LENGTH] = ndefRecord->payloadLength;
|
||||
return TEXT_RECORD_LEN;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ uint8_t composeRtdUri(const NDEFDataStr *ndef, NDEFRecordStr *ndefRecord, uint8_
|
||||
memcpy_s(&I2CMsg[TYPE_PAYLOAD], payLoadLen, &ndefRecord->type.typePayload.uri, payLoadLen);
|
||||
|
||||
ndefRecord->payloadLength = ndef->rtdPayloadlength + payLoadLen; // added the typePayload
|
||||
I2CMsg[PALOAD_LENGTH] = ndefRecord->payloadLength;
|
||||
I2CMsg[PAYLOAD_LENGTH] = ndefRecord->payloadLength;
|
||||
|
||||
return URI_RECORD_LEN;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ typedef struct {
|
||||
typedef enum {
|
||||
HEADER,
|
||||
TYPE_LENGTH,
|
||||
PALOAD_LENGTH,
|
||||
PAYLOAD_LENGTH,
|
||||
TYPE_CODE,
|
||||
TYPE_PAYLOAD
|
||||
}I2CMsgNum;
|
||||
|
||||
@@ -278,7 +278,7 @@ int MPU6050ReadID(void)
|
||||
unsigned char Re = 0;
|
||||
MPU6050ReadData(MPU6050_RA_WHO_AM_I, &Re, 1); // 读器件地址
|
||||
if (Re != 0x68) {
|
||||
printf("MPU6050 dectected error!\r\n");
|
||||
printf("MPU6050 detected error!\r\n");
|
||||
return -1;
|
||||
} else {
|
||||
return 0;
|
||||
|
||||
@@ -83,7 +83,7 @@ typedef enum {
|
||||
}en_oc_profile_data_t;
|
||||
|
||||
typedef struct {
|
||||
void *nxt; ///< ponit to the next key
|
||||
void *nxt; ///< point to the next key
|
||||
char *key;
|
||||
en_oc_profile_data_t type;
|
||||
void *value;
|
||||
|
||||
@@ -278,7 +278,7 @@ int MPU6050ReadID(void)
|
||||
unsigned char Re = 0;
|
||||
MPU6050ReadData(MPU6050_RA_WHO_AM_I, &Re, 1); // 读器件地址
|
||||
if (Re != 0x68) {
|
||||
printf("MPU6050 dectected error!\r\n");
|
||||
printf("MPU6050 detected error!\r\n");
|
||||
return -1;
|
||||
} else {
|
||||
return 0;
|
||||
|
||||
+1
-1
@@ -166,7 +166,7 @@ typedef struct {
|
||||
en_mqtt_al_connect_state(*check_status) (void *handle);
|
||||
}mqtt_al_op_t;
|
||||
|
||||
//////////////////////API USED FOR THE MQTT APPLICAITON/////////////////////////
|
||||
//////////////////////API USED FOR THE MQTT APPLICATION/////////////////////////
|
||||
|
||||
/**
|
||||
* @brief maybe the mqtt lib need do some initialize
|
||||
|
||||
@@ -96,7 +96,7 @@ typedef struct {
|
||||
char *id;
|
||||
char *pwd;
|
||||
char *scope_id;
|
||||
fn_oc_mqtt_msg_deal msg_deal; ///< when the agent receive any applciation data, please call this function
|
||||
fn_oc_mqtt_msg_deal msg_deal; ///< when the agent receive any application data, please call this function
|
||||
void *msg_deal_arg; ///< call back for the fn_oc_mqtt_msg_deal
|
||||
fn_oc_mqtt_log log_dealer;
|
||||
}oc_mqtt_config_t;
|
||||
|
||||
+1
-1
@@ -101,7 +101,7 @@ typedef enum {
|
||||
|
||||
|
||||
typedef struct {
|
||||
void *nxt; ///< ponit to the next key
|
||||
void *nxt; ///< point to the next key
|
||||
char *key;
|
||||
en_oc_profile_data_t type;
|
||||
void *value;
|
||||
|
||||
@@ -128,7 +128,7 @@ DLLExport void MQTTClientInit(MQTTClient* client, Network* network, unsigned int
|
||||
unsigned char* sendbuf, size_t sendbuf_size, unsigned char* readbuf, size_t readbuf_size);
|
||||
|
||||
/** MQTT Connect - send an MQTT connect packet down the network and wait for a Connack
|
||||
* The nework object must be connected to the network endpoint before calling this
|
||||
* The network object must be connected to the network endpoint before calling this
|
||||
* @param options - connect options
|
||||
* @return success code
|
||||
*/
|
||||
@@ -136,7 +136,7 @@ DLLExport int MQTTConnectWithResults(MQTTClient* client, MQTTPacket_connectData*
|
||||
MQTTConnackData* data);
|
||||
|
||||
/** MQTT Connect - send an MQTT connect packet down the network and wait for a Connack
|
||||
* The nework object must be connected to the network endpoint before calling this
|
||||
* The network object must be connected to the network endpoint before calling this
|
||||
* @param options - connect options
|
||||
* @return success code
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user