#define PAIRING_NOTIFICATION_H
#include "BaseView.h"
-
+#define NO_LCD_TEST_CONNECT 0
namespace OHOS
{
UIViewGroup *CreateDeviceBindingView(void);
bool OnClick(OHOS::UIView &view, const OHOS::ClickEvent &event) override;
void SetDeviceName(char *Name);
char *GetDeviceName();
+ #if NO_LCD_TEST_CONNECT
+ void Pairing_StartTimer(uint32_t interval = 1000*5);
+ #else
void Pairing_StartTimer(uint32_t interval = 1000*30);
+ #endif
+
void Pairing_StopTimer(void);
char DeviceName[50];
private:
DeviceBindingView->Add(DeviceBindingViewLabel);
DeviceBindingView->Add(DeviceBindingButtonCancel);
DeviceBindingView->Add(DeviceBindingButtonOK);
+ #if NO_LCD_TEST_CONNECT
+ PairingViewEventListener::GetInstance().Pairing_StartTimer();
+ #endif
}
return DeviceBindingView;
}
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Pairing_TimerCallbackProc");
#ifdef SUPPORT_BLE_SERVICE
+ #if NO_LCD_TEST_CONNECT
+ comfirmPaire(1);
+ #else
comfirmPaire(0);
#endif
+ #endif
if( NotificationManager::GetInstance()->GetShowingNotifyId() == TOPIC_EVENT_DEVICE_BIND &&
NotificationManager::GetInstance()->HasNotifyShowing() == true)
{