Skip to content

Commit

Permalink
added licence headers
Browse files Browse the repository at this point in the history
  • Loading branch information
RostakaGmfun committed Aug 6, 2015
1 parent 9193f40 commit a22c578
Show file tree
Hide file tree
Showing 19 changed files with 210 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#
# Copyright 2014 CyberVision, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

if(KAA_MAX_LOG_LEVEL EQUAL 7)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKAA_TRACE_MEMORY_ALLOCATIONS")
endif()
Expand Down
1 change: 1 addition & 0 deletions client/client-multi/client-c/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
<!-- SHA implementation from RFC 3174 -->
<exclude>**/platform-impl/sha1.h</exclude>
<exclude>**/sha1.c</exclude>
<exclude>**/snprintf.c</exclude>
</excludes>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <stddef.h>
#include <stdbool.h>
#include <platform/ext_configuration_persistence.h>

#include "esp8266_file_utils.h"

#define KAA_CONFIGURATION_STORAGE "" /* WTF?? no file system! */

void ext_configuration_read(char **buffer, size_t *buffer_size, bool *needs_deallocation) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef ESP8266_DEFAULTS_H_
#define ESP8266_DEFAULTS_H_

Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <stdint.h>
#include <stdio.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
* Copyright 2014-2015 CyberVision, Inc.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
* Copyright 2014-2015 CyberVision, Inc.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <stdbool.h>
#include <stddef.h>
#include <platform/ext_key_utils.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
//#include <stdlib.h>
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <stdio.h>
#include <stdarg.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef ESP8266_MEM_H
#define ESP8266_MEM_H

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef ESP8266_SOCK_H
#define ESP8266_SOCK_H

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <stdbool.h>
#include <stddef.h>
#include <platform/ext_status.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef ESP8266_STDIO_H
#define ESP8266_STDIO_H

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
Expand All @@ -6,7 +22,6 @@
#include <lwip/lwip/netdb.h>
#include <platform/ext_tcp_utils.h>
#include <kaa_common.h>
//#include <lwip/lwip/>

kaa_error_t ext_tcp_utils_open_tcp_socket(kaa_fd_t *fd,
const kaa_sockaddr_t *destination,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2014 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef ESP8266_TIME_H
#define ESP8266_TIME_H

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern "C" {

#define KAA_PUBLIC_KEY_LENGTH 294

static const char KAA_PUBLIC_KEY_DATA[KAA_PUBLIC_KEY_LENGTH] = { 48, -126, 1, 34, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 1, 5, 0, 3, -126, 1, 15, 0, 48, -126, 1, 10, 2, -126, 1, 1, 0, -94, 12, 103, -117, 111, -120, -11, -112, 23, 46, 25, 54, -33, -78, 5, 61, -121, 55, 52, -64, -23, 26, -128, -37, -111, -103, -13, 12, 59, 117, 56, -76, -87, -91, -38, -109, 61, -68, 17, -11, 22, 61, 42, 72, -76, 6, -26, 104, -80, 72, -45, -3, 60, -106, 12, -32, -28, -77, -83, -7, -116, -87, 77, 105, -88, -27, -25, -87, 49, -20, -123, -65, 125, 88, -25, 124, -19, 89, -12, -22, -64, -84, -59, -121, -114, 26, -126, -64, -72, -97, 33, 71, 53, 0, -49, -94, -15, -7, -92, 73, -113, -18, -15, -65, -116, 25, -69, 16, 28, -24, -47, -100, -85, 120, 62, 11, 104, 96, 60, 55, 94, -19, 83, 4, -93, 28, 92, -105, 1, -128, 17, -49, -45, -63, 118, -90, -11, 60, 82, -74, 5, -34, -119, -59, -92, 16, 41, -84, 100, 54, 61, 55, -103, -43, 21, -124, -113, 47, -128, -47, 6, -53, -112, -125, -18, -25, 65, -19, -11, -76, -16, -52, 100, 23, -46, 116, -43, 91, -118, -5, -36, -99, -32, -119, -120, 7, 24, 30, 109, -11, -28, -60, 88, -71, 53, -8, -119, -104, 83, 76, -69, -21, 32, 2, 121, -80, -116, 113, -53, 123, 61, -34, 61, 81, 15, -92, -2, -46, -97, 71, 14, 24, -115, 35, -94, -18, 123, -19, 125, 14, -89, 59, 39, -105, 6, -102, 122, -127, 60, -113, 33, 117, 105, -42, 36, 94, 20, -51, -65, 43, 2, 92, 70, -112, 94, -103, 2, 3, 1, 0, 1 };
static const char KAA_PUBLIC_KEY_DATA[KAA_PUBLIC_KEY_LENGTH] = { 48, -126, 1, 34, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 1, 5, 0, 3, -126, 1, 15, 0, 48, -126, 1, 10, 2, -126, 1, 1, 0, -124, 83, 55, -14, -29, -114, 90, -21, 78, 93, 71, -22, -52, -79, 15, -83, 87, 44, -98, 23, 13, -1, -128, -4, -77, 12, -52, 5, -58, 32, -8, -16, -20, -102, -9, 35, 63, -19, -58, 97, -103, 21, 43, 77, 5, -119, 70, -57, 93, 23, 27, 39, -36, 34, 60, -39, 83, 103, 113, 6, 110, -52, -90, 30, -105, -94, 2, 61, -62, -32, 101, -44, -47, -108, 99, 65, -64, 69, -71, 10, 78, 2, 96, -51, -83, 83, -17, 60, 91, -82, -118, 76, 66, 109, -50, 123, -25, 76, 1, 1, -22, 54, 111, -84, -107, -88, 34, -89, -84, -93, 6, 46, 28, -126, -73, -80, -126, 24, 28, -84, 63, 105, 54, -94, -120, 63, 123, -100, -77, -116, 104, -74, 33, 44, 43, 9, -44, 74, 110, 92, -94, -19, -4, 65, 71, -72, 67, 50, -61, 79, 118, 18, -58, 15, 52, 78, 98, -72, -1, -56, -1, -97, 42, 11, 102, -28, 53, 107, -96, -114, -97, 83, 4, -56, -23, 6, 58, 29, -94, 30, -21, 67, -31, -85, -60, -41, 43, 54, -84, 105, -71, -91, 87, 122, 18, 98, -54, 17, -54, 102, -20, -46, -59, -86, -72, -55, -14, -80, 58, -13, 84, 80, 83, -87, -50, -20, -58, 83, -30, 33, -20, 100, -63, -108, -127, 30, -28, 17, -53, 64, -23, 59, 48, 108, -127, 51, 14, 68, -86, 127, -4, 24, 114, 57, -80, -96, 9, 62, -86, -61, 13, -86, -11, 40, 29, 121, 2, 3, 1, 0, 1 };

#ifdef __cplusplus
} // extern "C"
Expand Down
16 changes: 16 additions & 0 deletions client/client-multi/client-c/toolchains/esp8266.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#
# Copyright 2014 CyberVision, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

include(CMakeForceCompiler)

#change this to path where you've installed xtensa toolchain
Expand Down

0 comments on commit a22c578

Please sign in to comment.