Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bosnivan committed Feb 21, 2019
1 parent eaad68c commit ffbd52b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion main.ts
@@ -1,7 +1,7 @@
/**
* Naredbe za rad s WiFi:bitom.
*/
//% color=#000000 weight=90 icon="\uf1eb" block="WiFi:bit"
//% color=#FFC0CB weight=90 icon="\uf1eb" block="WiFi:bit"
namespace WiFiBit {

function writeToSerial(data: string, waitTime: number): void {
Expand Down Expand Up @@ -53,4 +53,15 @@ namespace WiFiBit {
writeToSerial("AT+CWQAP", 6000)
}

/**
* Izvrši AT naredbu.
* @param naredba AT naredba, eg: "naredba"
* @param pauza nakon naredbe, eg: "pauza"
*/
//% weight=97
//% blockId="wfb_at" block="izvrši AT naredbu: %naziv| %lozinka"
export function executeAtCommand(naredba: string, pauza: number): void {
writeToSerial(naredba, pauza)
}

}

0 comments on commit ffbd52b

Please sign in to comment.