Skip to content

Commit 15ba84d

Browse files
committed
etc
0 parents  commit 15ba84d

13 files changed

+864
-0
lines changed

BTCSECURE_Minter_128x64.h

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#define BM_Logo_width 128
2+
#define BM_Logo_height 64
3+
const uint8_t BM_Logo_bits[] PROGMEM = {
4+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
5+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
6+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
7+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
8+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
9+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
10+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
11+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
12+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
13+
0xFE, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
14+
0x00, 0x00, 0x00, 0xE0, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF, 0xFF, 0x01, 0x00,
16+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE,
17+
0xFF, 0xFF, 0x03, 0x00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 0x1F, 0x00, 0x00, 0x80, 0xFF, 0xFF,
75+
0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x07, 0x00,
76+
0x00, 0x00, 0xFE, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC,
77+
0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0x03, 0x00, 0x00, 0x00,
78+
0x00, 0x00, 0x00, 0xF0, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF,
79+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x0F, 0x00, 0x00,
80+
0x00, 0x00, 0xF0, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
81+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x3F, 0x00, 0x00, 0x00, 0x00,
82+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x1F,
83+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
84+
0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
85+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
86+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
87+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
88+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
89+
0x00, 0x00, 0x00, 0x00, };
90+

http.cpp

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
#include "http.h"
2+
3+
Http::Http()
4+
{
5+
setTimeout(HTTP_TIMEOUT_MS);
6+
}
7+
Http::Http(const uint16_t timeout_ms)
8+
{
9+
setTimeout(timeout_ms);
10+
}
11+
uint8_t Http::get(const String host, const uint16_t port, const String getUrl, String& result)
12+
{
13+
uint8_t status = HTTP_RESULT_ERROR;
14+
#ifdef HTTP_DEBUG
15+
Serial << F("Http::get(") << host << "," << port << "," << getUrl << ")" << endl;
16+
#endif
17+
#ifdef ARDUINO
18+
/**/
19+
SyncClient client;
20+
if (!client.connect(host.c_str(), port))
21+
{
22+
#ifdef HTTP_DEBUG
23+
Serial << F("Connect Failed") << endl;
24+
#endif
25+
}
26+
const String httpHeaderGet = "GET " + getUrl + " HTTP/1.1\r\nHost: " + host + "\r\nConnection: close\r\n\r\n";
27+
const char *httpHeaderGetChar = httpHeaderGet.c_str();
28+
client.setTimeout(timeout_ms);
29+
if (client.printf(httpHeaderGetChar) > 0)
30+
{
31+
while (client.connected() && client.available() == 0)
32+
{
33+
delay(1);
34+
}
35+
// Skip HTTP headers
36+
const char endOfHeaders[] = "\r\n\r\n";
37+
if (!client.find(endOfHeaders))
38+
{
39+
#ifdef HTTP_DEBUG
40+
Serial << F("Http::get Invalid response") << endl;
41+
#endif
42+
// return;
43+
}
44+
else
45+
{
46+
String _out = "";
47+
while (client.available())
48+
{
49+
const char thisChar = client.read();
50+
_out += thisChar;
51+
}
52+
if (client.connected())
53+
{
54+
client.stop();
55+
}
56+
status = HTTP_RESULT_STATUS;
57+
result = _out;
58+
}
59+
}
60+
else
61+
{
62+
client.stop();
63+
#ifdef HTTP_DEBUG
64+
Serial << F("Send Failed") << endl;
65+
#endif
66+
while (client.connected())
67+
delay(0);
68+
}
69+
70+
#else
71+
curl = curl_easy_init();
72+
if (curl)
73+
{
74+
String url =
75+
76+
String readBuffer;
77+
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
78+
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
79+
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
80+
res = curl_easy_perform(curl);
81+
curl_easy_cleanup(curl);
82+
//
83+
return readBuffer;
84+
}
85+
#endif
86+
return status;
87+
}

http.h

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#ifndef HTTP_H
2+
#define HTTP_H
3+
4+
#define HTTP_TIMEOUT_MS 50
5+
#define HTTP_RESULT_STATUS 200 //200
6+
#define HTTP_RESULT_ERROR 0
7+
8+
#define HTTP_DEBUG
9+
// #define ARDUINO
10+
11+
#if defined(ARDUINO)
12+
#include "Arduino.h"
13+
#ifdef HTTP_DEBUG
14+
#include <Streaming.h>
15+
#endif
16+
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
17+
#define TRIGGER_PIN D3
18+
19+
#include <ESP8266mDNS.h>
20+
// #include "ESPAsyncTCP.h"
21+
#include "SyncClient.h"
22+
#else
23+
#include <iostream>
24+
#include <string>
25+
#include <curl/curl.h>
26+
#define String std::string
27+
#endif
28+
#include <ArduinoJson.h>
29+
30+
#include "minter.h"
31+
32+
class Http
33+
{
34+
private:
35+
#ifdef ARDUINO
36+
37+
#else
38+
CURL *curl;
39+
CURLcode res;
40+
std::string readBuffer;
41+
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
42+
{
43+
((std::string *)userp)->append((char *)contents, size * nmemb);
44+
return size * nmemb;
45+
}
46+
#endif
47+
// StaticJsonBuffer<20000> jsonBuffer;
48+
// char* json;
49+
uint16_t timeout_ms = HTTP_TIMEOUT_MS;
50+
public:
51+
Http();
52+
Http(const uint16_t timeout_ms);
53+
//_timeout_ms
54+
void setTimeout(const uint16_t timeout_ms)
55+
{
56+
this->timeout_ms = timeout_ms;
57+
}
58+
uint8_t get(const String host, const uint16_t port, const String getUrl, String& result);
59+
String testGet()
60+
{
61+
62+
#ifdef ARDUINO
63+
64+
#else
65+
curl = curl_easy_init();
66+
if (curl)
67+
{
68+
curl_easy_setopt(curl, CURLOPT_URL, "https://minter-node-2.testnet.minter.network:8841/status");
69+
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
70+
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
71+
res = curl_easy_perform(curl);
72+
curl_easy_cleanup(curl);
73+
// std::cout << readBuffer << std::endl;
74+
return readBuffer;
75+
}
76+
#endif
77+
return "";
78+
}
79+
};
80+
81+
#endif // HTTP_H

images.h.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#define WiFi_Logo_width 60
2+
#define WiFi_Logo_height 36
3+
const uint8_t WiFi_Logo_bits[] PROGMEM = {
4+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8,
5+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00,
6+
0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF,
7+
0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x00, 0x00, 0x00,
8+
0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
9+
0xFF, 0x03, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00,
10+
0x00, 0xFF, 0xFF, 0xFF, 0x07, 0xC0, 0x83, 0x01, 0x80, 0xFF, 0xFF, 0xFF,
11+
0x01, 0x00, 0x07, 0x00, 0xC0, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x0C, 0x00,
12+
0xC0, 0xFF, 0xFF, 0x7C, 0x00, 0x60, 0x0C, 0x00, 0xC0, 0x31, 0x46, 0x7C,
13+
0xFC, 0x77, 0x08, 0x00, 0xE0, 0x23, 0xC6, 0x3C, 0xFC, 0x67, 0x18, 0x00,
14+
0xE0, 0x23, 0xE4, 0x3F, 0x1C, 0x00, 0x18, 0x00, 0xE0, 0x23, 0x60, 0x3C,
15+
0x1C, 0x70, 0x18, 0x00, 0xE0, 0x03, 0x60, 0x3C, 0x1C, 0x70, 0x18, 0x00,
16+
0xE0, 0x07, 0x60, 0x3C, 0xFC, 0x73, 0x18, 0x00, 0xE0, 0x87, 0x70, 0x3C,
17+
0xFC, 0x73, 0x18, 0x00, 0xE0, 0x87, 0x70, 0x3C, 0x1C, 0x70, 0x18, 0x00,
18+
0xE0, 0x87, 0x70, 0x3C, 0x1C, 0x70, 0x18, 0x00, 0xE0, 0x8F, 0x71, 0x3C,
19+
0x1C, 0x70, 0x18, 0x00, 0xC0, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x08, 0x00,
20+
0xC0, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x0C, 0x00, 0x80, 0xFF, 0xFF, 0x1F,
21+
0x00, 0x00, 0x06, 0x00, 0x80, 0xFF, 0xFF, 0x0F, 0x00, 0x00, 0x07, 0x00,
22+
0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0xF8, 0xFF, 0xFF,
23+
0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x01, 0x00, 0x00,
24+
0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF,
25+
0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00,
26+
0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC,
27+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
28+
};

minter.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include "minter.h"
2+
3+
Minter::Minter()
4+
{
5+
6+
}

minter.h

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#ifndef MINTER_H
2+
#define MINTER_H
3+
4+
#if defined(ARDUINO)
5+
#include "Arduino.h"
6+
#else
7+
#include <iostream>
8+
#define String std::string
9+
#endif
10+
11+
#include <QList.h> //https://github.com/SloCompTech/QList
12+
13+
struct Status{
14+
uint64_t height;
15+
String datetime;
16+
String network;
17+
};
18+
struct BalancePair{
19+
String coin;
20+
float amount;
21+
String amountStr;
22+
};
23+
struct Wallet{
24+
uint64_t id;
25+
String address;
26+
uint32_t count_txs;
27+
QList<BalancePair> balance;
28+
};
29+
30+
class Minter
31+
{
32+
public:
33+
Minter();
34+
};
35+
36+
#endif // MINTER_H

0 commit comments

Comments
 (0)