Skip to content
This repository was archived by the owner on Jun 16, 2023. It is now read-only.

Commit 812ac47

Browse files
committed
Added packaging script
1 parent fef39a1 commit 812ac47

File tree

9 files changed

+94
-0
lines changed

9 files changed

+94
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
client_config.h
2+
.goutputstream-*

CubeServer-API-Wrapper.zip

55.5 KB
Binary file not shown.

keyword.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#######################################
2+
# Syntax Coloring Map For server.h
3+
#######################################
4+
5+
#######################################
6+
# Datatypes (KEYWORD1)
7+
#######################################
8+
9+
CubeServer KEYWORD1
10+
CubeServerConfig KEYWORD1
11+
GameStatus KEYWORD1
12+
13+
#######################################
14+
# Methods and Functions (KEYWORD2)
15+
#######################################
16+
17+
connect KEYWORD2
18+
get_status KEYWORD2
19+
post KEYWORD2
20+
postTemperature KEYWORD2
21+
postHumidity KEYWORD2
22+
postPressure KEYWORD2
23+
postLightIntensity KEYWORD2
24+
postComment KEYWORD2
25+
26+
#######################################
27+
# Constants (LITERAL1)
28+
#######################################
29+
CUBESERVER_DEFAULT_CONFIG LITERAL1
30+
VERIFICATION_OK LITERAL1
31+
VERIFICATION_FAILED LITERAL1
32+
33+
client LITERAL1
34+
http LITERAL1
35+
server_fingerprint LITERAL1

library.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=CubeServer-API-Wrapper
2+
version=0.1.0
3+
author=Joseph R. Freeston
4+
maintainer=
5+
sentence=API Wrapper for CubeServer
6+
paragraph=Post data to CubeServer, etc.
7+
category=Communication
8+
url=https://github.com/snorklerjoe/CubeServer-api-arduino
9+
architectures=ESP8266,ESP32 includes=server.h
10+
depends=ArduinoJson

package.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
# Package the library into a .zip file
3+
4+
source library.properties
5+
6+
if [ -f "client_config.h" ]; then
7+
echo "Building in specified client config..."
8+
cp server_options_client_conf.h server_options.h
9+
else
10+
cp server_options_default.h server_options.h
11+
fi
12+
13+
zip -r ${name}.zip .

server.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
# error "Unsupported Architecture."
2727
#endif
2828

29+
#include "server_options.h"
2930

3031
#include "compile_time.h"
3132

server_options.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* server_options.h
3+
* Copyright Joseph R. Freeston (MIT License)
4+
*
5+
* Additional options for the library
6+
*
7+
*/
8+
9+
// Use the client config packaged in this library:
10+
#ifndef CLIENT_CONF_H
11+
# define CLIENT_CONF_H
12+
# include "client_config.h"
13+
#endif

server_options_client_conf.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* server_options.h
3+
* Copyright Joseph R. Freeston (MIT License)
4+
*
5+
* Additional options for the library
6+
*
7+
*/
8+
9+
// Use the client config packaged in this library:
10+
#ifndef CLIENT_CONF_H
11+
# define CLIENT_CONF_H
12+
# include "client_config.h"
13+
#endif

server_options_default.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* server_options.h
3+
* Copyright Joseph R. Freeston (MIT License)
4+
*
5+
* Additional options for the library
6+
*
7+
*/
8+

0 commit comments

Comments
 (0)