| | |
| | | return IoTDAClient.newBuilder() |
| | | .withCredential(auth) |
| | | // 标准版/企业版:需自行创建Region对象,基础版:请使用IoTDARegion的region对象,如"withRegion(IoTDARegion.CN_NORTH_4)" |
| | | .withRegion(new Region("cn-south-1", IotConstant.URL)) |
| | | .withRegion(new Region("cn-south-1", config.getEndpoint())) |
| | | .build(); |
| | | } |
| | | /** |
| | |
| | | /** |
| | | * 华为云iot token |
| | | */ |
| | | public static final String IOT_TOKEN = "iot_token"; |
| | | public static final String IOT_TOKEN = ""; |
| | | /** |
| | | * 模式 |
| | | */ |
| | | public static final String PASSWORD = "password"; |
| | | public static final String PASSWORD = ""; |
| | | /** |
| | | * URL |
| | | */ |
| | | public static final String URL = "https://94cb3eb5f9.st1.iotda-app.cn-south-1.myhuaweicloud.com"; |
| | | public static final String URL = ""; |
| | | /** |
| | | * 创建产品 |
| | | */ |
| | |
| | | <contextName>logback</contextName> |
| | | |
| | | <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义后,可以使“${}”来使用变量。 --> |
| | | <!-- <property name="log.path" value="/data/log/app/ruoyi-integration"/>--> |
| | | <property name="log.path" value="/Users/mitao/Documents/log/mx_charging_pile/log/app/ruoyi-integration"/> |
| | | <property name="log.path" value="/data/log/app/ruoyi-integration"/> |
| | | |
| | | <!--0. 日志格式和颜色渲染 --> |
| | | <!-- 彩色日志依赖的渲染类 --> |