Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:76148ffba877, committed 2019-01-15
- Comitter:
- Sidibe
- Date:
- Tue Jan 15 15:20:53 2019 +0000
- Child:
- 1:cfd64ae75009
- Commit message:
- bonjour
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Sigfox_Com.lib Tue Jan 15 15:20:53 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/Sidibe/code/Sigfox_Com/#3ef537a95c15
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SoftSerial.lib Tue Jan 15 15:20:53 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/Sissors/code/SoftSerial/#a0029614de72
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SoftSerial_IR.lib Tue Jan 15 15:20:53 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/kenjiArai/code/SoftSerial_IR/#dc766032cdd6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Jan 15 15:20:53 2019 +0000
@@ -0,0 +1,69 @@
+#include "mbed.h"
+#include <iostream>
+#include "sigfox.h"
+#include "SoftSerial.h"
+using namespace std;
+
+DigitalOut myled(D2);
+Serial sc(SERIAL_TX, SERIAL_RX, 9600);
+//Serial device(PA_9, PA_10);
+SoftSerial device(PA_4, PA_5);
+//Serial sc2(D5, D4);
+
+
+int main() {
+ device.baud(9600);
+ sc.printf("---New start ---\r");
+ while (!device.writeable()) { }
+ sc.printf("Device writeable\r\n");
+ Sigfox_ mySigfox;
+
+ device.printf("AT\r");
+
+ char a = device.getc();
+ char b = device.getc();
+ sc.printf("%c%c \n", a, b);
+ sc.printf("%c", device.getc());
+
+
+ uint8_t i = 0;
+
+ char res[]= {'1','1','2','2','3','4','1','6','4','2'};
+ int res_[]= {1,1,2,2,3,4,1,6,6,2};
+ char res_1[]= {'a', 'b', 'c'};
+ int var = 1;
+
+ char donnee[] = "AT$SF=";
+ //char send[] = "123456789098";
+ device.printf(donnee);
+ device.printf("%x",79);
+ //wait_ms(100);
+ device.printf("%x",3249981468);
+ // wait_ms(100);
+ device.printf("%x",3258733844);
+ device.printf("\r");
+
+ char temp;
+ do{
+ wait(1.0);
+ temp = device.getc();
+ sc.printf("%c%", temp);
+ } while(temp != ';');
+
+
+
+ sc.printf("hhh");
+
+ while(1) {
+ if(device.readable() > 0){
+ temp = device.getc();
+ wait(3.0);
+ sc.printf("%c%", temp);
+ }
+ myled = 1;
+ wait(0.2);
+ myled = 0;
+ wait(1.0);
+ }
+}
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Jan 15 15:20:53 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc \ No newline at end of file