1- /*
2- * ESPRESSIF MIT License
3- *
4- * Copyright (c) 2021 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD>
5- *
6- * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
7- * it is free of charge, to any person obtaining a copy of this software and associated
8- * documentation files (the "Software"), to deal in the Software without restriction, including
9- * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10- * and/or sell copies of the Software, and to permit persons to whom the Software is furnished
11- * to do so, subject to the following conditions:
12- *
13- * The above copyright notice and this permission notice shall be included in all copies or
14- * substantial portions of the Software.
15- *
16- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22- *
23- */
24-
25- const char * tone_uri [] = {
26- "flash://tone/0_Bt_Reconnect.mp3" ,
27- "flash://tone/1_Wechat.mp3" ,
28- "flash://tone/2_Welcome_To_Wifi.mp3" ,
29- "flash://tone/3_New_Version_Available.mp3" ,
30- "flash://tone/4_Bt_Success.mp3" ,
31- "flash://tone/5_Freetalk.mp3" ,
32- "flash://tone/6_Upgrade_Done.mp3" ,
33- "flash://tone/7_shutdown.mp3" ,
34- "flash://tone/8_Alarm.mp3" ,
35- "flash://tone/9_Wifi_Success.mp3" ,
36- "flash://tone/10_Under_Smartconfig.mp3" ,
37- "flash://tone/11_Out_Of_Power.mp3" ,
38- "flash://tone/12_server_connect.mp3" ,
39- "flash://tone/13_hello.mp3" ,
40- "flash://tone/14_new_message.mp3" ,
41- "flash://tone/15_Please_Retry_Wifi.mp3" ,
42- "flash://tone/16_please_setting_wifi.mp3" ,
43- "flash://tone/17_Welcome_To_Bt.mp3" ,
44- "flash://tone/18_Wifi_Time_Out.mp3" ,
45- "flash://tone/19_Wifi_Reconnect.mp3" ,
46- "flash://tone/20_server_disconnect.mp3" ,
47- };
48-
49- int get_tone_uri_num ()
50- {
51- return sizeof (tone_uri ) / sizeof (char * ) - 1 ;
52- }
1+ /*
2+ * ESPRESSIF MIT License
3+ *
4+ * Copyright (c) 2023 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD>
5+ *
6+ * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
7+ * it is free of charge, to any person obtaining a copy of this software and associated
8+ * documentation files (the "Software"), to deal in the Software without restriction, including
9+ * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10+ * and/or sell copies of the Software, and to permit persons to whom the Software is furnished
11+ * to do so, subject to the following conditions:
12+ *
13+ * The above copyright notice and this permission notice shall be included in all copies or
14+ * substantial portions of the Software.
15+ *
16+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+ *
23+ */
24+
25+ const char * tone_uri [] = {
26+ "flash://tone/0_Alarm.mp3" ,
27+ "flash://tone/1_Under_Smartconfig.mp3" ,
28+ "flash://tone/2_Wifi_Reconnect.mp3" ,
29+ "flash://tone/3_Wifi_Success.mp3" ,
30+ "flash://tone/4_please_setting_wifi.mp3" ,
31+ "flash://tone/5_server_connect.mp3" ,
32+ "flash://tone/6_server_disconnect.mp3" ,
33+ };
34+
35+ int get_tone_uri_num ()
36+ {
37+ return sizeof (tone_uri ) / sizeof (char * ) - 1 ;
38+ }
0 commit comments