Changed config and endpoint
This commit is contained in:
parent
c0bf4286d1
commit
c9dc770880
@ -21,7 +21,7 @@
|
||||
#define MYGW 192,168,1,1
|
||||
#define MYMAC { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }
|
||||
|
||||
#define RAT_IP "192.168.1.173"
|
||||
#define RAT_IP "192.168.0.148"
|
||||
#define RAT_PORT 8081
|
||||
|
||||
// make it configurable with some panel
|
||||
|
@ -41,7 +41,7 @@ void Recorder::_transcribe() {
|
||||
int audioLength = _audio->getSize();
|
||||
int jsonLength = payloadStart.length() + audioLength + payloadEnd.length();
|
||||
|
||||
_http->printHeader("POST", "/save_audio", RAT_IP, "application/json");
|
||||
_http->printHeader("POST", "/save_to_file", RAT_IP, "application/json");
|
||||
_http->printContentLength(jsonLength);
|
||||
|
||||
this->_printContent(payloadStart, payloadEnd, _http->getClient());
|
||||
|
Loading…
x
Reference in New Issue
Block a user