From d547ed3a8291b86114cca71df7b337a2145c9ad2 Mon Sep 17 00:00:00 2001 From: Jihun Ha Date: Fri, 10 Mar 2017 11:10:13 +0900 Subject: [PATCH] Add an error code, "ES_ERRCODE_UNSUPPORTED_WIFI_FREQUENCY", in easy setup Added error code: - ES_ERRCODE_UNSUPPORTED_WIFI_FREQUENCY = 13 - An Enrollee can not connect to a target WiFi AP because the AP resides in an unsupported WiFi frequency Change-Id: Ia233e0e5e0bf8bee6dfa4f4b8a0660be325b363f Signed-off-by: Jihun Ha Reviewed-on: https://gerrit.iotivity.org/gerrit/17819 Reviewed-by: Uze Choi Tested-by: Uze Choi --- service/easy-setup/inc/escommon.h | 6 ++++++ .../org/iotivity/service/easysetup/mediator/enums/ESErrorCode.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/service/easy-setup/inc/escommon.h b/service/easy-setup/inc/escommon.h index 22afb5f..713ee0f 100755 --- a/service/easy-setup/inc/escommon.h +++ b/service/easy-setup/inc/escommon.h @@ -418,6 +418,12 @@ typedef enum ES_ERRCODE_FAILED_TO_FIND_REGISTERED_USER_IN_CLOUD, /** + * Error Code that an enrollee can not connect to a target WiFi AP because the AP resides in + * an unsupported WiFi frequency. + */ + ES_ERRCODE_UNSUPPORTED_WIFI_FREQUENCY, + + /** * Error Code that Unknown error occured */ ES_ERRCODE_UNKNOWN = 255 diff --git a/service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/java/org/iotivity/service/easysetup/mediator/enums/ESErrorCode.java b/service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/java/org/iotivity/service/easysetup/mediator/enums/ESErrorCode.java index 913924c..d94edf2 100755 --- a/service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/java/org/iotivity/service/easysetup/mediator/enums/ESErrorCode.java +++ b/service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/java/org/iotivity/service/easysetup/mediator/enums/ESErrorCode.java @@ -91,6 +91,12 @@ public enum ESErrorCode { ES_ERRCODE_FAILED_TO_FIND_REGISTERED_USER_IN_CLOUD(12), /** + * Error Code that an enrollee can not connect to a target WiFi AP because the AP resides in + * an unsupported WiFi frequency. + */ + ES_ERRCODE_UNSUPPORTED_WIFI_FREQUENCY(13), + + /** * Error Code that Unknown error occured */ ES_ERRCODE_UNKNOWN(255); -- 2.7.4