blockchain , sdchain cpp sdk and demo

Dependencies:   EthernetInterface mbed-rtos mbed uniqueCPUID

Fork of bcsdk by SDchain C Plus Plus Team

UnitTest.cpp

Committer:
webmaster
Date:
2018-08-08
Revision:
16:50646cf2e9a0
Parent:
8:f2a567ee3a46

File content as of revision 16:50646cf2e9a0:

#include "UnitTest.h"
#include "BlockChain.h"

int test_bc()
{


	string strRep;

/* 	strRep = "";
	http_post_bc(strInfo,strRep);
	cout<<"#####strRep: "<<strRep.c_str()<<endl;

	strRep = "";
	http_post_bc(strCreateKey,strRep);
	cout<<"#####strRep: "<<strRep.c_str()<<endl;

	strRep = "";
	http_post_bc(strCreateAccount,strRep);
	cout<<"#####strRep: "<<strRep.c_str()<<endl; */

	return 0;
}


int http_get()
{
	// GET https://api.connector.mbed.com/endpoints/?type=helloworld HTTP/1.1
	// HOST: https://api.connector.mbed.com
	// Content-Type: ; charset=UTF-8
	// Connection: keep-alive
	// Pragma: no-cache
	// Cache-Control: no-cache
	// X-Requested-With: XMLHttpRequest
	return 0;
}