Skip to content
This repository was archived by the owner on Sep 13, 2020. It is now read-only.

Commit a00ca33

Browse files
committed
Merge pull request #72 from mtl2034/master
more fixes to allow custom server be set for Arduino.
2 parents 6058600 + c008bcc commit a00ca33

File tree

7 files changed

+29
-4
lines changed

7 files changed

+29
-4
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT(parse-embedded, 1.0.4, damiank@fb.com)
1+
AC_INIT(parse-embedded, 1.0.5, damiank@fb.com)
22
AC_CONFIG_AUX_DIR(config)
33
AC_CONFIG_SRCDIR(common/simplejson.c)
44
AC_CONFIG_SRCDIR(unix/src/parse.c)

openwrt/parse-embedded/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
include $(TOPDIR)/rules.mk
1111

1212
PKG_NAME:=parse-embedded
13-
PKG_VERSION:=1.0.4
13+
PKG_VERSION:=1.0.5
1414
PKG_RELEASE:=1
1515

1616
PKG_SOURCE:=$(PKG_NAME)-sdks-$(PKG_VERSION).tar.gz

unix/yun/certs/2e5ac55d.0

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IdenTrustRoot.crt

unix/yun/certs/IdenTrustRoot.crt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/
3+
MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT
4+
DkRTVCBSb290IENBIFgzMB4XDTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVow
5+
PzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QgQ28uMRcwFQYDVQQD
6+
Ew5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
7+
AN+v6ZdQCINXtMxiZfaQguzH0yxrMMpb7NnDfcdAwRgUi+DoM3ZJKuM/IUmTrE4O
8+
rz5Iy2Xu/NMhD2XSKtkyj4zl93ewEnu1lcCJo6m67XMuegwGMoOifooUMM0RoOEq
9+
OLl5CjH9UL2AZd+3UWODyOKIYepLYYHsUmu5ouJLGiifSKOeDNoJjj4XLh7dIN9b
10+
xiqKqy69cK3FCxolkHRyxXtqqzTWMIn/5WgTe1QLyNau7Fqckh49ZLOMxt+/yUFw
11+
7BZy1SbsOFU5Q9D8/RhcQPGX69Wam40dutolucbY38EVAjqr2m7xPi71XAicPNaD
12+
aeQQmxkqtilX4+U9m5/wAl0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV
13+
HQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMSnsaR7LHH62+FLkHX/xBVghYkQMA0GCSqG
14+
SIb3DQEBBQUAA4IBAQCjGiybFwBcqR7uKGY3Or+Dxz9LwwmglSBd49lZRNI+DT69
15+
ikugdB/OEIKcdBodfpga3csTS7MgROSR6cz8faXbauX+5v3gTt23ADq1cEmv8uXr
16+
AvHRAosZy5Q6XkjEGB5YGV8eAlrwDPGxrancWYaLbumR9YbK+rlmM6pZW87ipxZz
17+
R8srzJmwN0jP41ZL9c8PDHIyh8bwRLtTcm1D9SZImlJnt1ir/md2cXjbDaJWFBM5
18+
JDGFoqgCWjBH4d1QB7wCCZAA62RjYJsWvIjJEubSfZGL+T0yjWW06XyxV3bqxbYo
19+
Ob8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ
20+
-----END CERTIFICATE-----

unix/yun/parse_request.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ void displayHelp() {
114114
" -k - set client key\n"
115115
" -x - set installation id\n"
116116
" -y - set session token\n"
117+
" -u - set server url\n"
117118
"\n", VERSION);
118119
}
119120

@@ -123,7 +124,7 @@ int main(int argc , char **argv) {
123124
int isYun = yunReadProvisioningInfo();
124125

125126
// process pre init options
126-
while((c=getopt(argc,argv,":a:k:x:y:v:e:d:p:ish"))!=-1){
127+
while((c=getopt(argc,argv,":a:k:x:y:u:v:e:d:p:ish"))!=-1){
127128
switch(c) {
128129
case 'h':
129130
displayHelp();
@@ -140,6 +141,9 @@ int main(int argc , char **argv) {
140141
case 'y':
141142
strncpy(g_cSessionToken, optarg, sizeof(g_cSessionToken));
142143
break;
144+
case 'u':
145+
strncpy(g_cServerURL, optarg, sizeof(g_cServerURL));
146+
break;
143147
case 'v':
144148
case 'e':
145149
case 'd':
@@ -191,7 +195,7 @@ int main(int argc , char **argv) {
191195
optind = 0;
192196
#endif
193197

194-
while((c=getopt(argc,argv,":a:k:x:y:v:e:d:p:ish"))!=-1){
198+
while((c=getopt(argc,argv,":a:k:x:y:v:u:e:d:p:ish"))!=-1){
195199
switch(c){
196200
case 'v': // http verb
197201
if(!(verb=strdup(optarg))){
10.9 KB
Binary file not shown.
12.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)